当停靠在底部应用栏时,如何使 FAB 上的填充发生变化?

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)