Docly Child

Flutter Configuration

Estimated reading: 3 minutes 47 views

Basic Configurations

IMPORTANT

To ensure a smooth customization process, make sure to double-check and update all the essential configuration settings mentioned here.


Open lib -> configs.dart

Change APP NAME

Replace your App Name
const APP_NAME = 'YOUR APP NAME ADD HERE';

Change DOMAIN URL

Replace your Domain URL


/// NOTE: Do not add slash (/) at the end of your domain.
const DOMAIN_URL = 'YOUR DOMAIN URL';

Change SITE URL

Replace your site URL to redirect user to your main site
const SITE_URL = "YOUR SITE URL";

Change Mail Address

Replace email address so App user can contact you via email.
const MAILTO = "YOUR MAIL ADDRESS";

Change Terms & Condition And Privacy Policy URL

Replace Terms & Condition and Privacy Policy URL
const TERMS_CONDITION = "YOUR TERMS & CONDITION URL";
const POLICY = "YOUR PRIVACY POLICY";

Change APP Icon & Splash Screen APP Icon

Just replace the image at the location mentioned here.
/// App Icon
const APP_ICON = 'assets/news/images/ic_logo.png';

/// Splash screen App Icon
const APP_ICON_RB = 'assets/news/images/ic_logo_rb.png';

 

Change Google AdMob IDs

IMPORTANT

If you don’t have Google Admob Ids then Refer Setup Admob For Android and Set up Admob for iOS. Get your ADMOB Ids.

  • To ensure proper functionality on Android, replace the variables “appID” and “BANNER_AD_ID_FOR_ANDROID” with the respective values, while for  iOS, replace “BANNER_AD_ID_FOR_IOS” and “INTERSTITIAL_AD_ID_FOR_IOS”.
/// AdMod Id
const appID = "ADMOB APP ID";
const BANNER_AD_ID_FOR_ANDROID ="BANNER ID" ;
const INTERSTITIAL_AD_ID_FOR_ANDROID = "INTERSTITIAL AD ID";

 

You have to add AdMob App ID in Androidmanifest.xml and info.plist for Android and iOS respectively. Find the steps in respective configuration documentation.

Enable Or Disable Admob Ad

In Main directory goto the utils folder and open lib/utils/constants.dart file and change isAdsDisabled value. if isAdsDisabled value false then ads show otherwise can’t show ads.

const isAdsDisabled = true;

Change App Colors

In Main directory goto the utils folder and open lib/utils/colors.dart file  and Change Color code.

import 'package:flutter/material.dart';

const primaryColor = Color(0xFFffb4b8);
const textColorPrimary = Color(0xFF212121);
const textColorSecondary = Color(0xFF757575);
const whiteColor = Colors.white;

Set language for all user or Set language manually from mobile

In Main directory goto the utils folder and open constants.dart file and change your isLanguageEnable value. if isLanguageEnable  = false then set language for all user other wise set language manually from mobile.

const isLanguageEnable = false;

Leave a Comment

Share this Doc
CONTENTS