【发布时间】:2020-06-03 12:15:59
【问题描述】:
floatingActionButton: FloatingActionButton(
onPressed: () {},
child: Icon(Icons.add),
),
bottomNavigationBar: BottomAppBar(
shape: CircularNotchedRectangle(),
notchMargin: 4.0,
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
IconButton(
icon: Icon(Icons.home),
onPressed: () {},
),
IconButton(
icon: Icon(Icons.search),
onPressed: () {},
),
IconButton(
icon: Icon(Icons.notifications),
onPressed: () {},
),
IconButton(
icon: Icon(Icons.perm_identity),
onPressed: () {},
),
],
),
),
我希望导航栏从底部略微升高并具有圆形边框。目前它位于屏幕底部。
【问题讨论】:
-
我想你正在寻找这个...pub.dev/packages/curved_navigation_bar
标签: android flutter flutter-layout flutter-animation