Steps to generate APKs and App bundles for Android applications
Follow the steps on this page to build the APK and IPA for deploying in Play Store and App-store.
Follow the Flutter Installation and setup Guide and Run the Application till the Flutter pub is set up.
Run the below command in your terminal from theroot of the project to generate the APK
flutter build apk --release
Prior knowledge of generating unique key store files for your application ( Reference links: Generating key store for your Android application)
Changing the App name
Changing App Logo (Ref Link: Changing app logo in Flutter)
Prior knowledge of app bundle creation for publishing in the Play Store
Terms and Conditions and Privacy Documents for your application
Note: The generated key store file needs to be added to the Android/app folder of your project. This is needed for publishing the next version of your application.
Add a key.properties file inside your Android folder which is a reference to your key store file. Below is the sample key.properties file.
Run the below command in your terminal from the root of the project to generate the App bundle to publish in the play store.
flutter build app bundle