Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 34 "Unable to load assets" #36

Open
Ameerical opened this issue Mar 13, 2021 · 3 comments
Open

Lesson 34 "Unable to load assets" #36

Ameerical opened this issue Mar 13, 2021 · 3 comments

Comments

@Ameerical
Copy link

This happened the last time I used the CircleAvatar widget backgroundImage. I pulled the flag images into the assets folder but they are not working. I updated the dependencies. The day and night images are working fine but none of the flag images are.

@Shyam-Sundar-Bharathi
Copy link

Most often, this error is because of improper indentation. It should be as follows:

Screenshot 2021-04-13 at 5 19 22 PM

Also, refer to this thread - https://stackoverflow.com/questions/53659809/fluttererror-unable-to-load-asset

@pm020202pm
Copy link

This happened the last time I used the CircleAvatar widget backgroundImage. I pulled the flag images into the assets folder but they are not working. I updated the dependencies. The day and night images are working fine but none of the flag images are.

Hey, i also faced this problem but try to save your work and restart your IDE it should start working.

@josoavj
Copy link

josoavj commented Dec 28, 2023

You must first specify the folder (asset) and mention it in pubspec.yaml in the same way as the others are declared there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants