Welcome to digital food menu - Android, IOS

Introduction

Mobile apps developed using a flutter framework created by Google are open-source mobile application development. It is used to develop applications for Android and iOS, as well as being the primary method of creating applications. There are some configuration steps shared between android and iOS compilation. In this section, we will cover those

Requirements

To edit this project you must have Flutter and Dart installed and configured successfully on your device Install flutter

  • Flutter (Channel stable, 3.0.1, on macOS 12.3.1 21E258 darwin-arm (Rosetta), locale en-BD)
  • Flutter version 3.0.1
  • Upstream repository https://github.com/flutter/flutter.git
  • Framework revision fb57da5f94 (13 days ago), 2022-05-19 15:50:29 -0700
  • Engine revision caaafc5604
  • Dart version 2.17.1
  • DevTools version 2.12.2

Android Studio Installation(Windows)

Android Studio Installation(Mac)

Flutter Installation on Windows

Flutter Installation on Mac

If you have updated you mac to Catalina from mojavi or earlier version then you may fetch some issues.Please follow bellow video to fix it.

Get Started

  • Download and unzip the Flutter App, use your preferred IDE (Android Studio / Visual Code / IntelliJ) to open the project.

Android Configuration

Icons

  • Create your app icon (ic_launcher.png) and notification icon(fav_logo.png) folders How to generate an app icon? after you generate icons folder replace the following folders:
    • /mipmap-hdpi in /android/app/src/main/res/ folder
    • /mipmap-mdpi in /android/app/src/main/res/ folder
    • /mipmap-xhdpi in /android/app/src/main/res/ folder
    • /mipmap-xxhdpi in /android/app/src/main/res/ folder
    • /mipmap-xxxhdpi in /android/app/src/main/res/ folder
          Note: Must rename app icon ic_launcher and notification icon fav_logo

Get Dependencies

  • Just run the following command
  •       flutter clear
          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 "" // this is the package name
                            minSdkVersion 21
                            targetSdkVersion 32
                            versionCode flutterVersionCode.toInteger()
                            versionName flutterVersionName
                            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
                        }
                      
                      
  • Then run the following command
          flutter pub get

  • Open /android/app/src/main/AndroidManifest.xml , /android/app/src/profil/AndroidManifest.xml, /android/app/src/debug/AndroidManifest.xml and specify your:
    • YOUR PACKAGE NAME
    • YOUR APPLICATION NAME


  • Open /android/app/src/main/kotlin//MainActivity.kt and change the package name
  • After changing package name you have to register new package in firebase and download service.json file
    and paste that file in path => android/app folder

Run & Build

Run Android Application

  • In the target selector, select an Android device for running the app. If none are listed as available, select Tools> Android > AVD Manager and create one there. For details, see Managing AVDs. Click the run icon in the toolbar, or invoke the menu item Run > Run. Locate the main Android Studio toolbar:
  • If you don't use Android Studio or IntelliJ you can use the command line to run your application using the following command
  •                   
                        flutter run
                      
                    

Build and Install App

  • After you make all your changes and customizations save all your project, Open the console, navigate to your project folder and execute the following command to build your app flutter build apk --release
  • If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
  • To generate an app bundle, run: flutter build appbundle --target-platform android-arm,android-arm64,android-x64
    Learn more on https://developer.android.com/guide/app-bundle
  • To split the APKs per ABI, run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
    Learn more on https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
  • You should get the APK file in the build/output/apk folder, to install your application on your connected device run the following command

Google Firebase Setup

firebase setup video guide

Goto Firebase Console And login with your Google account. Click on Create a project or Add Project. Then enter project name and follow then Firebase steps to complete. After Completing project creation click continue to redirect project dashboard.

Android

Click on Android Icon Then enter Android Package Name, App Name and click on register app.

Download google-services.json file and copy/paste it to android studio project directory.Location:: project » android » app. Done!

Note:Android package name should be the remain same with your studio project else build will not be work.

iOS

Click on iOS Icon Then enter iOS bundle ID, App Name and click on register app. Download GoogleService-Info.plist file and copy/paste it to android studio project directory.Location:: project » ios » Runner. Done!

Note:iOS Bundle ID should be the remain same with your studio project else build will not be work.

Thank you

Again, thank you for purchasing . If you need some help, or support please use email or contact form via codecanyon Profile site
Hope you happy with the onest CRM Solution, all the best with your business.

Change Log

© Onest Tech