Created
April 7, 2022 01:34
-
-
Save luizmarcus/c08582d87a519b2c584cf56ae3a9cc4d 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: 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