Flutter Configuration

Estimated reading: 2 minutes 273 views

Change App Font

1. In the main directory go to the lib -> AppTheme.dart file and change the fontFamily

fontFamily: GoogleFonts.FONT_NAME().fontFamily,

Manually Change App Colors

In main directory goto the assets folder and open woobox.json file and change color code.

"appsetup": {
"primaryColor": "#C62828",
"secondaryColor": "#2635DF",
"textPrimaryColor":"#212121",
"textSecondaryColor":"#757575",
"backgroundColor": "#FCFDFD",
},

Manually Change Server URL

In the main directory go to the assets folder and open the woobox.json file and change your Base URL.

"appsetup": {
"appUrl": "YOUR SERVER URL"
},

Manually Change App Key

In the main directory go to the assets folder and open the builder.json file and change your consumerKey & consumerSecret.

"appsetup": {
"consumerKey": "YOUR CONSUMER KEY",
"consumerSecret": "YOUR CONSUMER SECRET",
},

Change AdMob App ID

Open the android project and open AndoridManifest.xml file. and change your App Id.

In iOS open iOS project and open info.plist and change Admob App Id.

open utils folder and open Constants.dart file and change the banner id and interstital id.

const bannerIdForAndroid="YOUR BANNER ID FOR ANDROID";
const bannerIdForIos="YOUR BANNER ID FOR iOS";
const InterstitialIdForAndroid = "YOUR InterstitialAd ID FOR ANDROID";
const interstitialIdForIos = "YOUR InterstitialAd ID FOR ANDROID"; 

Enable & Disable AdMob Ads

Open utils -> constants.dart file and change the enableAds value. If enableAds value true then ads show otherwise can’t show ads.

const enableAds = true;

How to generate JSON file from builder

Go to https://wordpress.iqonic.design/product/mobile/wooboxbuilder/#/ and configure the changes which you want and download the JSON file.

How to import JSON file to app?

In the main directory go to the assets folder and change the woobox.json file which is downloaded from the https://wordpress.iqonic.design/product/mobile/wooboxbuilder/#/

The file name must be builder.json

Leave a Comment

Share this Doc

Flutter Configuration

Or copy link

CONTENTS