问题是,当FAB
停靠在 上BottomAppBar
,然后调用键盘时,FAB
填充调整大小未正确对齐键盘上方以供用户按下。
这是实际发生的事情......
重现错误的脚手架的快速示例;
Scaffold(
appBar: AppBar(),
bottomNavigationBar: BottomAppBar(
shape: CircularNotchedRectangle(),
child: Row(
children: <Widget>[
IconButton(
icon: Icon(
Icons.lightbulb_outline,
color: Colors.deepPurple,
),
onPressed: () {},
),
],
),
),
body: Center(
child: TextField(),
),
floatingActionButton: FloatingActionButton(
onPressed: () {},
),
floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
);