Deployment
Preparing your app for the Google Play Store or Apple App Store involves several steps.
1. Changing App Package Name
Section titled “1. Changing App Package Name”DashLearn includes the change_app_package_name package to make this easy.
-
Run the command:
Terminal window flutter pub run change_app_package_name:main com.yourcompany.appname -
This updates Android and iOS configuration files automatically.
2. Changing App Name
Section titled “2. Changing App Name”To change the display name (e.g., “DashLearn” -> “My LMS”):
-
Open
pubspec.yaml. -
Update the
rename_appconfiguration (or add it if missing):dev_dependencies:rename_app: ^1.6.5 -
Run:
Terminal window flutter pub run rename_app:main all="My New App Name"
3. Building for Release
Section titled “3. Building for Release”Android (APK/Bundle)
Section titled “Android (APK/Bundle)”# Generate App Bundle (Recommended for Play Store)flutter build appbundle --release
# Generate APKflutter build apk --releaseiOS (IPA)
Section titled “iOS (IPA)”Note: Requires macOS and Xcode.
flutter build ios --releaseThen open ios/Runner.xcworkspace in Xcode to archive and upload.