1final bool showFab = MediaQuery.of(context).viewInsets.bottom==0.0;
2
3//then use Visibility widget to wrap the FAB and set visible attribute to showFab
4buildAcitonButton(){
5 return Visibility(
6 visible: _showFab,
7 child: RaisedButton(
8 child: ...
9 ),
10 );
11}