搜尋套件、儲存庫與 APP 分類

stylish_bottom_bar 封面
套件詳情v1.1.1

stylish_bottom_bar

一組時尚的底端導航欄,例如動畫底端欄和氣泡底端欄,適用於 Flutter。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
8190
喜歡數
331
Pub 分數
150

安裝套件

flutter pub add stylish_bottom_bar

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,提供視覺上吸引人的底端導航列,包含動畫與氣泡式設計。它透過順暢的過渡與現代美學提升使用者介面,非常適合尋求獨特導航體驗的應用程式。此套件支援多個平台,並能無縫整合至現有的 Flutter 專案中。透過可自訂選項,讓開發者輕鬆實作引人注目的底端欄,無需大量編碼。完美適用於追求精緻、現代外觀的行動與網頁應用。

適用情境

  • 透過動畫效果增強應用導航
  • 使用氣泡風格底部欄創建獨特的使用者介面
  • 透過視覺反饋提升使用者參與度
  • 為跨平台應用設計現代介面
  • 為底部導航添加動態過渡
  • 使用最少代碼自定義導航外觀

主要特色

  • 動畫底部欄過渡
  • 氣泡式底部導航設計
  • 跨平台支援(Android、iOS、Web、macOS、Windows、Linux)
  • 與 Flutter 專案的輕鬆整合
  • 可自訂的顏色和動畫
  • 輕量且高效能的實作

適合對象

  • 尋求現代 UI 組件的 Flutter 開發人員
  • 需要引人注目的導航的應用程式
  • 以設計為重點的行動與網路應用
  • 希望快速提升使用者介面的開發者
  • 強調使用者體驗和視覺吸引力的專案
  • 尋找即用型、已樣式化的導航欄的團隊

使用建議

  • 可能需要為複雜主題添加額外的樣式
  • 超出所提供動畫類型的自訂功能有限
  • 依賴於Flutter版本相容性
  • 大量動畫可能帶來的效能影響
  • 不適合極簡設計偏好
  • 需要理解Flutter的widget系統才能進行高級修改

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Hello stylish_bottom_bar Version

A collection of stylish bottom navigation bars like animated bottom bar and bubble bottom bar for flutter.

Table of contents

⭐ Installing

dependencies:
    stylish_bottom_bar: ^1.2.0-beta

⚡ Import

import 'package:stylish_bottom_bar/stylish_bottom_bar.dart';

📙 How To Use

items:
option:
backgroundColor:
elevation:
currentIndex:
iconSize:
padding:
inkEffect:
inkColor:
onTap:
opacity:
borderRadius:
fabLocation:
hasNotch:
barAnimation:
barStyle:
unselectedIconColor:
bubbleFillStyle:
iconStyle:
selectedIcon:
dotStyle:

Properties

items → List<BottomBarItem>
option → AnimatedBarOptions
option → BubbleBarOptions
option → DotBarOptions
option → BarBlurOptions
backgroundColor → Color
elevation → double
currentIndex → int
iconSize → double
padding → EdgeInsets
inkEffect → bool
inkColor → Color
onTap → Function(int)
opacity → double
borderRadius → BorderRadius
fabLocation → StylishBarFabLocation
hasNotch → bool
barAnimation → BarAnimation
barStyle → BubbleBarStyle
unselectedIconColor → Color
bubbleFillStyle → BubbleFillStyle
iconStyle → IconStyle
dotStyle → DotStyle
BarStyle
BubbleBarStyle.vertical
BubbleBarStyle.horizotnal
BubbleFillStyle
BubbleFillStyle.fill
BubbleFillStyle.outlined
FabLocation
StylishBarFabLocation.center
StylishBarFabLocation.end
BarAnimation
BarAnimation.fade
BarAnimation.blink
BarAnimation.transform3D
BarAnimation.liquid
BarAnimation.drop
IconStyle
IconStyle.Default
IconStyle.simple
IconStyle.animated
DotStyle
DotStyle.circle
DotStyle.tile
NotchStyle
NotchStyle.circle
NotchStyle.square
NotchStyle.themeDefault
Event
onTap: (index){
    
}

Showcase

BarBlurOptions

BarBlurOptions.frosted()


BarBlurOptions.liquidGlass()

AnimatedBarOptions

IconStyle.Default


IconStyle.simple


IconStyle.animated


BarAnimation.fade


BarAnimation.blink


BarAnimation.liquid


BarAnimation.drop


DotBarOptions

DotStyle.circle


DotStyle.tile

BubbleBarOptions

BubbleBarStyle.horizotnal

BubbleFillStyle.outlined

BubbleBarStyle.vertical

BubbleFillStyle.outlined

Migrate to 1.0.0

List<dynamic> items is changed to List<BottomBarItem> items

From version 1.0.0 option: AnimatedBarOptions and BubbleBarOptions will be used to change the bar items type and properties.

Example

StylishBottomBar(
//  option: const BarBlurOptions.liquidGlass(),
//
//  option: const BarBlurOptions.frosted(),
//
//  option: AnimatedBarOptions(
//    iconSize: 32,
//    barAnimation: BarAnimation.liquid,
//    iconStyle: IconStyle.animated,
//    opacity: 0.3,
//  ),
//
//  option: BubbleBarOptions(
//    barStyle: BubbleBarStyle.horizotnal,
//    // barStyle: BubbleBarStyle.vertical,
//    bubbleFillStyle: BubbleFillStyle.fill,
//    // bubbleFillStyle: BubbleFillStyle.outlined,
//    opacity: 0.3,
//  ),
//
  option: DotBarOptions(
    dotStyle: DotStyle.tile,
    gradient: const LinearGradient(
      colors: [
        Colors.deepPurple,
        Colors.pink,
      ],
      begin: Alignment.topLeft,
      end: Alignment.bottomRight,
    ),
  ),
  items: [
    BottomBarItem(
      icon: const Icon(Icons.abc),
      title: const Text('Abc'),
      backgroundColor: Colors.red,
      selectedIcon: const Icon(Icons.read_more),
    ),
    BottomBarItem(
      icon: const Icon(Icons.safety_divider),
      title: const Text('Safety'),
      backgroundColor: Colors.orange,
    ),
    BottomBarItem(
      icon: const Icon(Icons.cabin),
      title: const Text('Cabin'),
      backgroundColor: Colors.purple,
    ),
  ],
  fabLocation: StylishBarFabLocation.end,
  hasNotch: true,
  currentIndex: selected,
  onTap: (index) {
    setState(() {
      selected = index;
      controller.jumpToPage(index);
    });
  },
)

Contributions and pull requests are welcome! We value your input and appreciate any improvements or suggestions you can provide. Feel free to submit a pull request with your changes. Don't forget to star the repository if you find it useful. Thank you for your collaboration!

所屬分類

原始碼儲存庫

使用此套件的專案