Flutter Configuration

Estimated reading: 2 minutes 1645 views

Changing the App's Name

 In the main directory go to the lib -> configs.dart

const APP_NAME = 'YOUR APP NAME';

Changing the Default Language

 In the main directory go to the lib -> utils -> constants.dart

class Constants {
static const defaultLanguage = 'en';
}

Reconfiguring the Server URL

 In the main directory go to the lib -> configs.dart

const DOMAIN_URL = "ADD YOUR BASE URL" ;

Changing the App Font

In the main directory go to the lib -> app_theme.dart

fontFamily: GoogleFonts.FONT_NAME().fontFamily,

Changing Primary Color

 In the main directory go to the lib -> utils -> colors.dart

const appColorPrimary = Color(0xFF2F65B9);

Changing About Us URL

In the main directory go to the lib -> configs.dart

/// Terms and Conditions URL
const TERMS_AND_CONDITIONS_URL = 'TERMS AND CONDITIONS URL';

/// Privacy Policy URL
const PRIVACY_POLICY_URL = 'YOUR PRIVACY POLICY URL';

/// Support URL
const SUPPORT_URL = 'YOUR SUPPORT URL';

Changing OneSignal Id

 In the main directory go to the lib -> configs.dart

/// OneSignal Notification App Id
const ONESIGNAL_APP_ID = 'YOUR ONESIGNAL ID HERE';

Changing Consumer Secret and Consumer Key

In Main directory go to the lib -> utils -> constants.dart file and change your keys.

const CONSUMER_KEY = 'YOUR_CONSUMER_KEY';
const CONSUMER_SECRET = 'YOUR_CONSUMER_SECRET';
Great! You have successfully configured Flutter!

Leave a Comment

Share this Doc

Flutter Configuration

Or copy link

CONTENTS