Build for android
Open your project in vscode. Open terminal and run
flutter build apk
Build file location: <project>/build/app/outputs/flutter-apk/
You can now share this apk with anyone.
To deploy your app on playstore, you can follow this link: https://docs.flutter.dev/deployment/android
Build for IOS
Apple doesn’t allow to install and distribute app like android. To install it on your iOS device or distribute, you have to deploy it on TestFlight or AppStore. For deployment you can follow this link:
https://docs.flutter.dev/deployment/ios