小编Hel*_*era的帖子

在底部导航颤动后面扩展容器

我试图将底部导航栏后面的白色容器扩展到屏幕的最末端。不仅仅是按钮导航栏的限制(如图所示)。

任何帮助或想法都非常感谢,我在 Flutter 中很新。谢谢!

应用程序的结构是:

bottomNavigationBar: BottomAppBar(
    shape: CircularNotchedRectangle(),
    notchMargin: 8.0,
    child: Row(
      mainAxisSize: MainAxisSize.max,
      mainAxisAlignment: MainAxisAlignment.spaceEvenly,
      children: <Widget>[
        IconButton(
          icon: Icon(
            Icons.show_chart,
          ),
          onPressed: () {},
        ),
        SizedBox(width: 48.0),
        IconButton(
          icon: Icon(
            Icons.filter_list,
          ),
          onPressed: () {},
        ),
      ],
    ),
  ),
  floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
  floatingActionButton: FloatingActionButton(
    child: Icon(Icons.add),
    onPressed: () {},
  ),
  body: Column(
    children: <Widget>[
      Expanded(
        child: Container(
        height: 100,
        decoration: BoxDecoration(
          color: Colors.white,
          borderRadius: BorderRadius.only(
            topLeft: Radius.circular(40),
            topRight: Radius.circular(40)
          )
        ),
      ),
      )
    ],
  )
Run Code Online (Sandbox Code Playgroud)

android ios dart flutter

3
推荐指数
1
解决办法
1361
查看次数

标签 统计

android ×1

dart ×1

flutter ×1

ios ×1