I am playing around with flutter and building a simple quiz app. The project is almost ready to publish on play store and have several things to fix. But, I tried new flutter --analyze-size
command and found out that I can reduce the file size more by scaling down images. I scaled images (it reduced the sizes significantly) and replaced the original files.
Then I ran a flutter clean
and flutter pub get
and ran flutter build apk --analyze-size --target-platform=android-arm64
just to test again. Although I reduced the image file sizes, the analysis tool shows the same sizes as before.
I also tried invalidate caches/restart option in android studio. But still the same result. When I selected two json files to compare in Diff option in DevTools, it says that they are identical files. Please, Can someone point me out how to fix this without creating a new project and moving files and assets?
P.S. I am on flutter channel beta, 2.5.0 on Windows 10