Deploy

Before you start doing anything make sure you have installed jdk and added keytool to path if you haven't follow the below tutorial

MacOS
Linux
Windows

Android#

Open terminal and cd into the project directory and run the following command

keytool -genkey -v -keystore android/app/key.keystore -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias {alias}

replace {alias} with your preferred alias. Now navigate to android/key.properties and add change the password and alias you just created for the keystore.

To generate release apk run

flutter build apk --release

To generate appbundle(recommended for paystore)

flutter build appbundle --release

iOS#

Follow the below link to generate and publish on appstore

Youtube