Flutter Configuration

Estimated reading: 1 minute 144 views

Change App Colors

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

import 'package:flutter/material.dart';

const primaryColor = "CHNAGE COLOR";
const secondaryColor = "CHNAGE COLOR";
const dangerColor = "CHNAGE COLOR";
const captionColor = "CHNAGE COLOR";
const cardColor = "CHNAGE COLOR";
const successColor = "CHNAGE COLOR";

Change Admob App ID

  • Open the android project and open AndoridManifest.xml file. and change your App Id.
<application
android:name="io.flutter.app.FlutterApplication"
android:label="Crypto Coins"
android:icon="@mipmap/ic_launcher">
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="YOUR ADS APPLICATION ID"/>
  • In iOS open iOS project and open info.plist and change Admob App Id.
  • open utils folder and open app_constant.dart file and Admob class
class Admob {
static String mAdMobBannerId = BannerAd.testAdUnitId;
static String mAdMobInterstitialId = InterstitialAd.testAdUnitId;
}

Leave a Comment

Share this Doc

Flutter Configuration

Or copy link

CONTENTS