颤振中的自定义底部导航栏

时间:2020-08-16 09:19:57

标签: flutter dart flutter-dependencies

如何在如下所示的抖动中创建自定义的bottomNavigation Bar:

https://github.com/abstracta/jmeter-java-dsl

1 个答案:

答案 0 :(得分:0)

this插件将帮助您设计此类底部导航栏。

Convex

Scaffold(
  bottomNavigationBar: ConvexAppBar(
    items: [
      TabItem(icon: Icons.home, title: 'Home'),
      TabItem(icon: Icons.map, title: 'Discovery'),
      TabItem(icon: Icons.add, title: 'Add'),
      TabItem(icon: Icons.message, title: 'Message'),
      TabItem(icon: Icons.people, title: 'Profile'),
  ],
  initialActiveIndex: 2,//optional, default as 0
  onTap: (int i) => print('click index=$i'),
 )
);

您也可以使用this插件

this