【问题标题】:Custom Bottom Navigation Bar in flutter [duplicate]颤动中的自定义底部导航栏[重复]
【发布时间】:2020-12-05 15:55:44
【问题描述】:

如何在 Flutter 中创建自定义的底部导航栏,如下所示:

【问题讨论】:

  • 请更新问题,到目前为止您已经尝试过什么

标签: flutter dart flutter-dependencies


【解决方案1】:

this插件会帮你设计这样的底部导航栏。

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'),
 )
);

你也可以使用thisplugin

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-09-26
    • 1970-01-01
    • 2019-06-19
    • 2019-12-21
    • 1970-01-01
    • 2022-01-21
    • 2020-03-07
    • 1970-01-01
    相关资源
    最近更新 更多