Created
May 1, 2020 13:08
-
-
Save luizmarcus/da01d86495d820962b87df99dc7fde74 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 | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text(widget.title), | |
), | |
body: Column( | |
crossAxisAlignment: CrossAxisAlignment.stretch, | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
children: <Widget>[ | |
Container( | |
child: getBanner(AdmobBannerSize.BANNER), | |
), | |
Container(child: getBanner(AdmobBannerSize.MEDIUM_RECTANGLE)), | |
Container( | |
margin: const EdgeInsets.only(left: 20, right: 20), | |
child: RaisedButton( | |
color: Colors.red, | |
child: Text( | |
"Exibir Interstitial!", | |
style: TextStyle(color: Colors.white), | |
), | |
onPressed: () { | |
showInterstitial(); | |
}), | |
) | |
], | |
)); | |
} | |
@override | |
void dispose() { | |
interstitialAd.dispose(); | |
super.dispose(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment