Set up the Development Environment

Flutter SDK (Above v.2.0)
  • Run "flutter upgrade" to upgrade your flutter sdk to latest stable release.

Android SDK (minimum Api-21)
  • Change your './android/app/build.gradle' as

    defaultConfig {
        minSdkVersion 21 // Change api level
    here
    }
    

iOS SDK (minimum v9.0)
  • Set MinimumOSVersion to 9.0 in ’./ios/Flutter/AppFrameworkInfo.plist’

  • Ensure that you uncomment platform :ios, ‘9.0’ in ’./ios/Podfile’

  • Ensure that ios/Podfile contains the following post-install script as https://stackoverflow.com/a/64075795/13152213

Project Setup

1. Install package dependencies:

flutter pub get

2. Run the project by running command:

flutter run flutter run -d chrome

3. Use one of these commands to build the project:

flutter build apk flutter build ios flutter build appbundle

4. If any issue (run the below command to troubleshoot):

flutter doctor

Google Map Setup

  • To use Google Maps in your Flutter app, you need to configure an API project with the Google Maps Platform, following both the Maps SDK for Android Get API key, and Maps SDK for iOS Get API key processes. With API keys in hand, carry out the following steps to configure both Android and iOS applications.
  • To add an API key to the Android app, edit the AndroidManifest.xml file in android/app/src/main . Add a single meta-data entry containing the API key created in the previous step.
  • To add an API key to the iOS app, edit the AppDelegate.swift file in ios/Runner . Unlike Android, adding an API key on iOS requires changes to the source code of the Runner app. The AppDelegate is the core singleton that is part of the app initialization process
  • For more on google maps