inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

kcontrol님의 게시글

kcontrol kcontrol

@kcontrol5397

수강평 작성수
3
평균평점
4.0

게시글 3

질문&답변

Image.asset이 정상적으로 되지 않습니다.

공백을 2칸씩 변경해도 동일하게 파일을 못찾습니다ㅠ pubsepc.yaml 파일은 아래와 같습니다. # To add assets to your application, add an assets section, like this: assets: - assets/pic.jpg # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg 에러 메세지는 하기와 같습니다. ======== Exception caught by image resource service ================================================ The following assertion was thrown resolving an image codec: Unable to load asset: "assets/pic.jpg". Exception: Asset not found When the exception was thrown, this was the stack: #0 PlatformAssetBundle.loadBuffer (package:flutter/src/services/asset_bundle.dart:372:7) #1 AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:811:18) Image provider: AssetImage(bundle: null, name: "assets/pic.jpg") Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#f2583(), name: "assets/pic.jpg", scale: 1.0) ====================================================================================================

좋아요수
0
댓글수
2
조회수
1481