搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案