Skip to main content
added 34 characters in body
Source Link
live-love
  • 53.1k
  • 27
  • 256
  • 220

Make sure the folder you are referring in Image.asset contains the file.

For example:

Image.asset(
"./assets/images/loading.gif",
height: 125.0,
width: 125.0,
)

The folder should be:

C:\your_app_folder\images\your_app_folder\assets\images

pubspec.yaml:

  assets:
    - assets/
    - assets/images/

Run:

flutter clean

to to clean the intermediate files and refresh.

Make sure the folder you are referring in Image.asset contains the file.

For example:

Image.asset(
"./images/loading.gif",
height: 125.0,
width: 125.0,
)

The folder should be:

C:\your_app_folder\images

pubspec.yaml:

  assets:
    - images/

Run:

flutter clean

to clean the intermediate files and refresh.

Make sure the folder you are referring in Image.asset contains the file.

For example:

Image.asset(
"./assets/images/loading.gif",
height: 125.0,
width: 125.0,
)

The folder should be:

C:\your_app_folder\assets\images

pubspec.yaml:

  assets:
    - assets/
    - assets/images/

Run flutter clean to clean the intermediate files and refresh.

added 58 characters in body
Source Link
live-love
  • 53.1k
  • 27
  • 256
  • 220

Make sure the folder you are referring in Image.asset contains the file.

For example:

Image.asset(
"./images/loading.gif",
height: 125.0,
width: 125.0,
)

The folder should be:

C:\your_app_folder\images

pubspec.yaml:

  assets:
    - images/

Run:

flutter clean

to clean the intermediate files and refresh.

Make sure the folder you are referring in Image.asset contains the file.

For example:

Image.asset(
"./images/loading.gif",
height: 125.0,
width: 125.0,
)

The folder should be:

C:\your_app_folder\images

pubspec.yaml:

  assets:
    - images/

Make sure the folder you are referring in Image.asset contains the file.

For example:

Image.asset(
"./images/loading.gif",
height: 125.0,
width: 125.0,
)

The folder should be:

C:\your_app_folder\images

pubspec.yaml:

  assets:
    - images/

Run:

flutter clean

to clean the intermediate files and refresh.

Source Link
live-love
  • 53.1k
  • 27
  • 256
  • 220

Make sure the folder you are referring in Image.asset contains the file.

For example:

Image.asset(
"./images/loading.gif",
height: 125.0,
width: 125.0,
)

The folder should be:

C:\your_app_folder\images

pubspec.yaml:

  assets:
    - images/