Admobの広告バナー を下部に表示するようにしたら、flutter初期状態で表示されるfloatingActionButtonのボタンが広告と重なってしまったので、ちょっと位置を変更(上に移動)する。
⇨Scaffoldの中でfloatingActionButton:を指定するときに、 Containerで包んで(child:として、元々のボタンのwighetを記載)、余白を調整すればOK。
return Scaffold(
appBar: AppBar(
title: Text(title),
),
body: 〜
floatingActionButton: Container(
margin:EdgeInsets.only(bottom: 50.0),
child:FloatingActionButton(
onPressed:() {
counterBloc.increment.add(null);
},
tooltip: 'Increment',
child: Icon(Icons.add),
),