Mandatory setup

Info
Run an existing Flutter project on IDE

Change App Logo

You can generate app icon from this website: https://easyappicon.com/ Click Here

    Light Theme
  • Go to assets/svgs/logo white.svg and replace logo white.svg.png with your own logo.
  • Dark Theme
  • Go to assets/svgs/logoblack.svg and replace logoblack.png with your own logo.
  • Then go to https://easyappicon.com/ This website and generated icon
  • Again go to /ios/Runner and replace Assets.xcassets with your generated Assets.xcassets folder.
TIPS

Recommended tutorial is below 👇


Change App Name

  1. Change the value of label from
    
        <project>/android/app/src/main/AndroidManifest.xml
    
        android:label=  ‘My App’;
                        
  2. Change the value of CFBundleName from
    
        <project>/iOS/Runner/info.plist
                    
        <Key>CFBundleName<Key>
                    
        <string>My App<string>
                      
TIPS

Recommended tutorial is below 👇


Change Base URL

Must remember that don’t put slash(/) at the end of your base url. Use your admin url as base url. First you have to install your admin panel. For example: If your admin url is https://your_domain.com/admin then base url will be https://your_domain.com. Open lib/config/app_constant.dart and replace baseUrl variable value with your own URL.


    lib/config/app_constant.dart

    static const String baseUrl= 'https://your_domain.com';
              
TIPS

Recommended tutorial is below 👇


Change App Package

Run this command to change the package name.

flutter pub run change_app_package_name:main com.new.package.name

First you have to find out the existing package name. You can find it out from top of /app/src/main/AndroidManifest.xml file. Now right click on project folder from android studio and click on replace in path. You will get a popup window with two input box. In first box you have to put existing package name that you saw in AndroidManifest.xml file previously and write down your preferred package name in second box and then click on Replace All button.

TIPS

Recommended tutorial is below 👇


Setup Firebase for Push Notification

First you have to change your package name. If you didn’t then follow this.

  • Create your own firebase project from https://console.firebase.google.com and also add an android app there with your own package name and app name.
    WARNING

    Do not create multiple project if you have multiple app like User App, Delivery App. Create only one project and add multiple app under project.

  • Click register app and download google-services.json file from there.
  • Copy that file and paste it under <project> /android/app/ folder.
  • Create a totally white png logo for notification icon. Paste it on <project> /android/app/src/main/res/drawable/ and replace notification_icon.png with your whiter version logo.
  • For IOS again create an app under same project and download GoogleService-Info.plist and paste it under <project>/iOS/ folder. Also follow this documentation for full setup for IOS: https://firebase.flutter.dev/docs/messaging/apple-integration
  • Paste firebase server key in admin panel Notification Settings section. You can get server key from Firebase project settings->Cloud Messaging->Server Key.

After your setup please restart your IDE and uninstall your previously installed app then run it. Also don’t try to test it on emulator or simulator. Emulator and simulators are unable to get push. Use real device in this case.

TIPS

Recommended tutorial is below 👇