Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luizmarcus/da01d86495d820962b87df99dc7fde74 to your computer and use it in GitHub Desktop.
Save luizmarcus/da01d86495d820962b87df99dc7fde74 to your computer and use it in GitHub Desktop.
@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