Build for Android
Run the following command to build the APK
Open Android Terminal & Run
flutter build apk
This command builds your Flutter app and creates an APK file.
After it finishes, go to build/app/outputs/flutter-apk in your project folder.
There you will see a file named app-release.apk or app-debug.apk
The above command creates one large merged APK.
If you want to generate smaller, split APKs instead, use the following command:
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
With this command, Flutter will generate three separate APKs. Use the one that is compatible with your device.
For deploying it please follow this documentation: https://docs.flutter.dev/deployment/android
Reference:
For more information about creating a Flutter signed release APK or AAB file, please follow these videos.
Build for iOS
There is no standard way to generate installable iOS apps like you can with Android.
Apple does not allow direct installation of apps in this manner.
If you want to run the app on your iOS device, you must deploy it through TestFlight or the App Store.
To learn how to deploy your iOS app, please follow this documentation: https://docs.flutter.dev/deployment/ios