代码之家  ›  专栏  ›  技术社区  ›  Tom O'Sullivan

如何让填充改变晶圆厂时,停靠在底部的应用程序栏?

  •  1
  • Tom O'Sullivan  · 技术社区  · 6 年前

    问题是当 FAB 停靠在 BottomAppBar 绝妙的

    以下是实际发生的情况。。。

    enter image description here

    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,
    );
    
    0 回复  |  直到 6 年前
    推荐文章