📜  Flutter fab 覆盖键盘打开时的小部件 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:18.051000             🧑  作者: Mango

代码示例1
final bool showFab = MediaQuery.of(context).viewInsets.bottom==0.0;

//then use Visibility widget to wrap the FAB and set visible attribute to showFab
buildAcitonButton(){
    return Visibility(
      visible: _showFab,
      child: RaisedButton(
        child: ...
      ),
    );
}