搜索插件、代码仓与 APP 分类

bubble_bottom_bar 封面
插件详情v2.0.0

bubble_bottom_bar

BubbleBottomBar 是由 cubertodesign 设计、westdabestdb 开发的 Flutter 小部件。

近 30 天下载
1130
喜欢数
224
Pub 分数
50

安装插件

flutter pub add bubble_bottom_bar

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

BubbleBottomBar 是一个可自定义的 Flutter 底部导航栏小部件,其选中项具有独特的气泡状动画效果。由 cubertodesign 设计,westdabestdb 开发,通过流畅的过渡和视觉吸引力提升了用户体验。该小部件支持自定义图标、颜色和动画,非常适合现代应用程序界面。它可通过 pub.dev 轻松集成到 Flutter 项目中,且为开源项目,开发者可以探索并扩展其功能。

适合场景

  • 需要动画底部导航的移动应用
  • 注重设计的应用程序,具有交互式用户界面
  • 旨在营造轻松或现代美感的应用程序
  • 可自定义的标签栏,带有视觉反馈
  • 通过动态导航提升用户参与度

主要特点

  • 选择时的动画气泡效果
  • 可自定义的颜色和图标
  • 平滑过渡动画
  • 支持多个项目
  • 开源且由社区维护

适合对象

  • 寻求视觉上引人注目的导航的开发人员
  • 以设计为导向的 Flutter 项目
  • 面向年轻或创意受众的应用程序
  • 希望拥有轻量级、可重用组件的团队
  • 强调用户互动和反馈的项目

使用建议

  • 有限的平台特定自定义
  • 无内置辅助功能
  • 可能需要额外的样式来实现复杂布局
  • 未针对大量标签页进行优化
  • 依赖外部维护和更新

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

bubble_bottom_bar / BubbleBottomBar

BubbleBottomBar is a Flutter widget designed by cubertodesign and developed by westdabestdb.

Getting Started

Add this to your package's pubspec.yaml file:

...
dependencies:
  bubble_bottom_bar: ^1.2.0

Now in your Dart code, you can use:

import 'package:bubble_bottom_bar/bubble_bottom_bar.dart';

Usage

floatingActionButton: FloatingActionButton(
        onPressed: (){},
        child: Icon(Icons.add),
        backgroundColor: Colors.red,
),
floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
bottomNavigationBar: BubbleBottomBar(
        opacity: .2,
        currentIndex: currentIndex,
        onTap: changePage,
        borderRadius: BorderRadius.vertical(top: Radius.circular(16)),
        elevation: 8,
        fabLocation: BubbleBottomBarFabLocation.end, //new
        hasNotch: true, //new
        hasInk: true, //new, gives a cute ink effect
        inkColor: Colors.black12, //optional, uses theme color if not specified
        items: <BubbleBottomBarItem>[
            BubbleBottomBarItem(backgroundColor: Colors.red, icon: Icon(Icons.dashboard, color: Colors.black,), activeIcon: Icon(Icons.dashboard, color: Colors.red,), title: Text("Home")),
            BubbleBottomBarItem(backgroundColor: Colors.deepPurple, icon: Icon(Icons.access_time, color: Colors.black,), activeIcon: Icon(Icons.access_time, color: Colors.deepPurple,), title: Text("Logs")),
            BubbleBottomBarItem(backgroundColor: Colors.indigo, icon: Icon(Icons.folder_open, color: Colors.black,), activeIcon: Icon(Icons.folder_open, color: Colors.indigo,), title: Text("Folders")),
            BubbleBottomBarItem(backgroundColor: Colors.green, icon: Icon(Icons.menu, color: Colors.black,), activeIcon: Icon(Icons.menu, color: Colors.green,), title: Text("Menu"))
        ],
      ),

Show Badge

BubbleBottomBarItem(
  showBadge: true,
  badge: Text("5"),
  badgeColor: Colors.deepPurpleAccent,
  backgroundColor: Colors.red,
  icon: Icon(
    Icons.dashboard,
    color: Colors.black,
  ),
  activeIcon: Icon(
    Icons.dashboard,
    color: Colors.red,
  ),
  title: Text("Home"),
)

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目