Flutter Configuration

Estimated reading: 2 minutes 317 views
NOTE
  1. The Section 

Changing the App's Name

  • For Granth Flutter App In the main directory go to the lib -> utils -> configs.dart
const APP_NAME = 'YOUR APP NAME';

Changing the Default Language

  • For Granth Flutter 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 Granth Flutter App
    •  In the main directory go to the lib -> utils -> configs.dart
const DOMAIN_URL = "ADD YOUR BASE URL" ;

Changing the App Font

  • For Granth Flutter App In the In the main directory go to the lib -> utils -> configs.dart
appFontFamily: GoogleFonts.FONT_NAME().fontFamily,

Changing Primary Color

  • For Granth Flutter App
    •  In the main directory go to the lib -> utils -> configs.dart
var defaultPrimaryColor = Color(0xff0060FB);

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 Ads

  • For Granth Flutter App
    •  In the main directory go to the lib -> utils -> configs.dart
const BANNER_ID_ANDROID = 'YOUR_ID';
const BANNER_ID_IOS = 'YOUR_ID';
const INTERSTITIAL_ID_ANDROID = 'YOUR_ID';
const INTERSTITIAL_ID_IOS = 'YOUR_ID';
Great! You have successfully configured Flutter!

Leave a Comment

Share this Doc

Flutter Configuration

Or copy link

CONTENTS