Last active
December 15, 2019 11:51
-
-
Save sagarshende23/2bb3a5d316086fade798a3612a1ecc08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
void initState() { | |
FirebaseAdMob.instance.initialize(appId: BannerAd.testAdUnitId); | |
//Change appId With Admob Id | |
_bannerAd = createBannerAd() | |
..load() | |
..show(); | |
super.initState(); | |
} | |
@override | |
void dispose() { | |
_bannerAd.dispose(); | |
_interstitialAd.dispose(); | |
super.dispose(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment