Skip links

Warning: Attempt to read property "parent" on bool in /home/activeitzone.com/public_html/activeitzone.com/wp-content/themes/ave-child/templates/header/header-docs.php on line 3

How to configure the App according to your setup?

How to configure the App according to your setup?

  • App Config:
    This helps you connect your app to your server.

Open lib/app_config.dart

You can change the copyright_text, app_name, app_version, purchase_code,, HTTPS ,DOMAIN_PATH variable.

Do not change the other variables.

Make sure that purchase_code is given. Otherwise your app will not work properly.

If your site does not have https or your are using a local machine as server (localhost) the make HTTPS = false;

Your DOMAIN_PATH is your site url without any protocol. (see screenshot below)

If you are using localhost, DOMAIN_PATH should be “your_ip_address/your_project”;
** “localhost/your_project” will not not work **

Normally you do not have to change the BASE_PATH. Keep it as given.

But if you are using s3 for image uploading your BASE_PATH should be:

BASE_PATH =https://[[bucketname]].s3.[[regeion]].amazonaws.com/“;

  • Theme Config:

This helps you change your app’s colors according to your theme/branding

Open lib/my_theme.dart

You can change the accent_color, gradient_color_1, gradient_color_2 variable.

Flutter by default does not support hex color. Do not change the other variables.

Use https://www.rapidtables.com/convert/color/hex-to-rgb.html To get the RGB value if you do not already know your theme’s RGB color.
You should keep the Opacity value 1 (Opacity can be 0, 0.1, 0.2, …….. ,0.9 ,1)

See the screenshot below: 

  • Configure the launcher icon:

This helps you change your app’s launcher icon.

Change the app_icon.png in assets/logo folder with your own

logo.Your file name should also be app_icon.png and it should be a 512×512 png image and the image format should be the same.

 

After replacing the file , uninstall your app from your emulator.Otherwise the logo will not be changed.

Then in your android studio terminal run:
flutter pub get

Then run:

flutter pub run flutter_launcher_icons:main

Then run your app (shift +10). The app will be installed again with your given launcher icon.

 

  • Configure other logos:

In the asset folders we have other logos that you may want to change according to your 

branding.

This logos will be found in :

assets/logo/app_logo.png (512×512)

assets/appbar_logo.png (512×512)

 

Change this logo with your own logo.File name , image format and size should be the same for each logo.

Then in your android studio terminal run:
flutter pub get

Then restart your app (shift +10). You should see your own logo in these places.