- Get Dependencies
And just run the following command
flutter pub get
- Change Package Name If you want to change the package name following the next steps
Open /android/app/build.gradle and change the package name
defaultConfig { applicationId "ENTER YOU PACKAGE NAME" minSdkVersion 23 targetSdkVersion 29 versionCode flutterVersionCode.toInteger() versionName flutterVersionName }
- Change Package Name in manifests files Open /android/app/src/main/AndroidManifest.xml , /android/app/src/profil/AndroidManifest.xml, /android/app/src/debug/AndroidManifest.xml and specify:
YOUR PACKAGE NAME, YOUR APPLICATION NAME and YOUR GOOGLE MAPS KEY<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="YOUR PACKAGE NAME"> <application android:name="io.flutter.app.FlutterApplication" android:label="YOUR APPLICATION NAME" android:icon="@mipmap/ic_launcher"> <meta-data android:name="com.google.android.geo.API_KEY" android:value="YOUR GOOGLE MAPS KEY"/> <activity - MainActivity.kt
Open /android/app/src/main/kotlin/Your Package name folders/MainActivity.kt and change the package name
- Drag and Drop Firebase Google-Service.json file
Open Android Studio and Drag and Drop Firebase Google-Service.json file into android/app folder
- Set Server Path
Open file lib/model/config/api.dart and change _path to you new site path.
- Set Google Maps Api Key
Open Admin Panel and Open menu Setting Put Your Google Map API key and press Save

- AppDelegate.swift
Specify your API key in the application delegate ios/Runner/AppDelegate.swift:
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GMSServices.provideAPIKey("YOU GOOGLE MAPS KEY")
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
Facebook Comments
