Skip to content

Instantly share code, notes, and snippets.

@luizmarcus
Created April 7, 2022 01:34
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/c08582d87a519b2c584cf56ae3a9cc4d to your computer and use it in GitHub Desktop.
Save luizmarcus/c08582d87a519b2c584cf56ae3a9cc4d to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text(
Constants.APP_NAME,
),
),
body: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const Text(
Constants.APP_NAME,
),
const SizedBox(
height: 10,
),
ElevatedButton(
onPressed: () => _showInterstitialAd(),
child: const Text("Abrir Intertiscial"))
],
),
),
_bannerAd != null
? Container(
height: 50,
color: Colors.white10,
child: SizedBox(
height: _bannerAd!.size.height.toDouble(),
width: _bannerAd!.size.width.toDouble(),
child: AdWidget(ad: _bannerAd!),
),
)
: Container()
],
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment