Tom*_*van 6 textedit dart floating-action-button flutter bottomappbar
问题在于,当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,
);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
474 次 |
| 最近记录: |