Flutter Configuration

Estimated reading: 2 minutes 166 views

Changing the App's Name

  • For User & Provider app
    •  In the main directory go to the lib -> utils -> configs.dart
const APP_NAME = 'YOUR APP NAME';
const APP_NAME_TAG_LINE = 'YOUR APP TAG LINE'; (Used only for user app)

Changing the Default Language

  • For User & Provider app
    •  In the main directory go to the lib -> utils -> configs.dart
const DEFAULT_LANGUAGE = "LANGUAGE CODE" ; (eg. "en","ar","de","pt","es")

Reconfiguring the Server URL

  • For User & Provider app
    •  In the main directory go to the lib -> utils -> configs.dart
const DOMAIN_URL = "ADD YOUR BASE URL" ;

Changing the App Font

  • For User & Provider app
    • In the main directory go to the lib -> app_theme.dart
fontFamily: GoogleFonts.FONT_NAME().fontFamily,

Changing Primary Color

  • For User & Provider app
    •  In the main directory go to the lib -> utils -> configs.dart
var defaultPrimaryColor = Color(0xFF5F60B9);

Changing About Us URL

  • For User & Provider app
    •  In the main directory go to the lib -> utils -> configs.dart
const TERMS_CONDITION_URL = 'YOUR_URL_HERE';
const PRIVACY_POLICY_URL = 'YOUR_URL_HERE';
const HELP_SUPPORT_URL = 'YOUR_URL_HERE';

Changing Google Map Key

  • For User & Provider app 
    • In the main directory go to the booking_system_flutter/android/app/src/main/AndroidManifest.xml
    • Change the existing key
<meta-data
    android:name="com.google.android.geo.API_KEY"
    android:value="YOUR_MAP_KEY" />

Changing "Register as Partner's" link

  • For User & Provider app
    • In the main directory go to the lib -> utils -> configs.dart
const PROVIDER_PACKAGE_NAME = 'YOUR_PROVIDER_APPLICATION_ID'; // You can change this to your provider package name
Great! You have successfully configured Flutter!

Leave a Comment

Share this Doc

Flutter Configuration

Or copy link

CONTENTS