Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Hot Reload not reloading/refreshing assets

Tags:

flutter

dart

When I add an Image asset to my project and later change the image file in the asset directory without changing its filename, it doesn't update in the app. I've tried hot reload, full restart, uninstalling and reinstalling app, flutter clean, gradle clean. All not working, even invalidate and restart android studio, still not working.

like image 892
riftninja Avatar asked Jul 19 '18 16:07

riftninja


1 Answers

I understand you are updating asset files without changing image name and you are wondering how to tell flutter to reread your asset.

I had the same problem, making small changes to json file included as an asset.

flutter clean
flutter packages get
flutter run

Works for me

like image 62
Mathieu J. Avatar answered Dec 06 '22 08:12

Mathieu J.