在底部导航栏中颤动自定义形状按钮

时间:2021-01-17 23:47:34

标签: flutter widget navigation-drawer navbar shapes

我有一个底部导航栏的设计(如图所示),但我不知道如何制作自定义形状按钮,这是我的底部导航栏代码

Scaffold(
      appBar: AppBar(
        title: Text("Reply demo"),
      ),
      bottomNavigationBar: BottomAppBar(
        elevation: 0,
        color: Color(0xff344955),
        child: Container(
          padding: EdgeInsets.symmetric(horizontal: 10.0),
          height: 56.0,
          child: Row(children: <Widget>[
            IconButton(
              onPressed: showMenu,
              icon: Icon(Icons.menu),
              color: Colors.white,
            ),
            Spacer(),
            IconButton(
              onPressed: () {},
              icon: Icon(Icons.add),
              color: Colors.white,
            ),
            IconButton(
              onPressed: () {},
              icon: Icon(Icons.home),
              color: Colors.white,
            )
          ]),
        ),
      ),

enter image description here

0 个答案:

没有答案