Mandatory setup
info
Same documentation for all related projects like Agent App
Run an existing flutter project on IDEβ
Change App Logoβ
You can generate app icon from this website https://app icon.co.
- Go to
<project>/assets/image/
and replace logo.png with your own logo. - Then go to
/android/app/src/main/res
and replace all mipmap folder with your<generated icon>/android
folder. - Again go to
/ios/Runner
and replace Assets.xcassets with your generated Assets.xcassets folder.
tip
Recommended tutorial is below π
Change App Nameβ
You need to set your app name in three different place. Open
<project>/lib/util/app_constrants.dart
and set the value ofAPP_NAME
/lib/util/app_constrants.dartstatic const String APP_NAME = βMy Appβ;
Change the value of label from
<project>/android/app/src/main/AndroidManifest.xml
/android/app/src/main/AndroidManifest.xmlandroid:label="My App"
Change the value of CFBundleName from
<project>/iOS/Runner/info.plist
/iOS/Runner/info.plist<key>CFBundleName</key>
<string>My App</string>tip
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/util/app_constrants.dart
and replace BASE_URL
variable value with your own URL.
static const String BASE_URL = 'https://your_domain.com';
tip
Recommended tutorial is below π
Change App Packageβ
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.
tip
Recommended tutorial is below π