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

titled_navigation_bar 封面
套件詳情v4.1.0

titled_navigation_bar

一個美觀、乾淨且簡單的底部導航欄,點擊時具有順暢的動畫效果。此套件高度可自訂,請往下閱讀以了解更多細節。

近 30 天下載
193
喜歡數
142
Pub 分數
40

安裝套件

flutter pub add titled_navigation_bar

套件介紹

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

一個視覺上吸引人且極簡的底部導航欄,選擇時具有平滑的動畫過渡效果。高度可自訂,允許開發者根據應用設計調整外觀和行為。該套件專注於乾淨美學與直覺的使用者互動,非常適合重視現代、精緻介面的應用。透過簡單的 pub 命令即可輕鬆整合,並持續關注效能與易用性。

適用情境

  • 需要簡潔底部導航欄的行動應用程式
  • 可自訂的導航體驗
  • 專注於視覺美化和使用者體驗的應用程式
  • 簡單而優雅的 UI 組件
  • 帶有動畫狀態變化的導航欄

主要特色

  • 平滑點擊動畫
  • 高度可定制的設計
  • 極簡且乾淨的美學
  • 與 Flutter 的輕鬆整合
  • 支援動態標籤樣式

適合對象

  • 尋求現代導航 UI 的 Flutter 開發者
  • 強調設計一致性專案
  • 具有多個標籤頁或部分的應用程式
  • 想要輕量級導航解決方案的開發者
  • 注重設計的移動應用

使用建議

  • 有限的平台特定自訂
  • 無內建圖示支援(需手動設定)
  • 最適合簡單的導航模式
  • 可能需要額外的樣式來實現複雜佈局
  • 未針對非常大的導航集進行優化

原始 README

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

Pub Awesome Flutter

Titled Bottom Navigation Bar

A beautiful, clean and simple bottom navigation bar with smooth animation on click. This package is high customizable, read more bellow for more details.

You can see the source code of this lib inside the /lib folder.

Show some :heart: and star the repo to support this project

Preview (default mode)

Default Mode Gif

Preview (with reverse mode)

Reversed Mode Gif

Package overview

  • [x] Custom icon color
  • [x] Custom indicator color
  • [x] Support from two to five items
  • [x] Reverse mode (show selected item as icon or title)
  • [x] Option to define custom item background color
  • [x] Use currentIndex property to update the Bar giving a tab position
  • [x] No need setState(...) to update the current index
  • [x] Support RTL TextDirection (thanks to Victor Uvarov)

Getting Started

Follow these steps to use this library

Add the plugin:
dependencies:
  ...
  titled_navigation_bar: ^5.0.0-nullsafety.0
Import the package
import 'package:titled_navigation_bar/titled_navigation_bar.dart';
Adding the widget
bottomNavigationBar: TitledBottomNavigationBar(
  currentIndex: 2, // Use this to update the Bar giving a position
  onTap: (index){
    print("Selected Index: $index");
  },
  items: [
      TitledNavigationBarItem(title: Text('Home'), icon: Icons.home),
      TitledNavigationBarItem(title: Text('Search'), icon: Icons.search),
      TitledNavigationBarItem(title: Text('Bag'), icon: Icons.card_travel),
      TitledNavigationBarItem(title: Text('Orders'), icon: Icons.shopping_cart),
      TitledNavigationBarItem(title: Text('Profile'), icon: Icons.person_outline),
  ]
)

Customization (Optional)

TitledBottomNavigationBar

onTap - Use this to get notified when an item is clicked, you can retrieve the current item's index on this function. Should not be null!
items - The items of your bottom navigation bar. Use the TitledNavigationBarItem class to add items. Should not be null!
curve - Use this to define your custom curve animation. Should not be null!
reverse - If true, the visible widget of the selected item will be the Text (with the title of the item). If false, the visible widget of the selected item will be the icon. Default to false
activeColor - The active Text/Icon color. The default color is the indicatorColor of your app Theme.
inactiveColor - The inactive Text/Icon color. The default is the black color.
indicatorColor - The indicator color. The default color is the indicatorColor of your app Theme.
currentIndex - Use this to update the Bar giving a position.
enableShadow - Use this to remove the NavigationBar's shadow

TitledNavigationBarItem

icon -The icon of this item. This will be used as default state if reverse mode is disabled
title - The title of this item. This will be used as default state if reverse mode is enabled

所屬分類

原始碼儲存庫

使用此套件的專案