Tips And Tricks to make Flutter Development easier

Tips And Tricks to make Flutter Development easier

#1 Enabling AndroidX :

Instead of expecting an androidX error, you can always enable androidX right when you create the project.

#2 Specifying package name :

You have to change the application ID/ package name at some point in your development. So why not at the time of project creation.

The above code will create an app with the application ID com.bimsina.awesomeapp_.

#3 Reducing App Size:

Wondering why your app is larger than usual? It’s probably because the app is running in debug mode. Well to run you application in release mode, you can always build a version of apk that will be release in the Google PlayStore.

#4 Building AndroidApp Bundle (aab):

PlayStore recommends that you upload aab instead of apk as it helps in the reduction of download size in the user’s end.

By using the target property you can specify to build only for 64 bit processors too.

#5 Clean the project:

Facing a problem after adding various packages? The easiest solution is to clean the project and rebuild it again.

This will delete your *build/ *directory and its created again when you rebuild the application.

Share:

© 2021 • Bibek Timsina