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

dot_curved_bottom_nav 封面
套件詳情v0.0.2

dot_curved_bottom_nav

令人驚嘆的動畫曲線形狀環繞指示器導航列。可調節顏色、背景顏色、動畫曲線和動畫持續時間。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
169
喜歡數
51
Pub 分數
150

安裝套件

flutter pub add dot_curved_bottom_nav

套件介紹

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

一個視覺效果出色的Flutter套件,可在底部導航列的指示器下方創建動畫曲線形狀。它允許自訂曲線的顏色、背景顏色、動畫曲線和持續時間,透過流暢動態的過渡提升使用者體驗。非常適合追求精緻、互動式底部導航感受的現代應用程式介面。此套件支援所有主要平台,包括Android、iOS、Web、macOS、Windows和Linux。

適用情境

  • 透過動畫視覺反饋增強應用導航
  • 使用圓角底部欄創建現代用戶界面
  • 使用動態動畫自訂導航指示器
  • 透過視覺優化提升使用者參與度
  • 跨多個平台設計響應式底部導航

主要特色

  • 導航指示器下方的動畫曲線形狀
  • 可自定的顏色和背景顏色
  • 可調節的動畫曲線和持續時間
  • 流暢的動畫
  • 跨平台相容性
  • 透過 pub add 命令輕鬆整合

適合對象

  • 尋求進階導航效果的UI設計師
  • 開發現代移動和網路應用的開發者
  • 需要動畫底部導航的應用
  • 團隊專注於視覺美化和互動性
  • 使用底部導航欄的 Flutter 開發人員

使用建議

  • 可能影響低階裝置的效能
  • 需要仔細調整動畫設定
  • 僅限底部導航列使用情境
  • 不適合簡單或極簡設計
  • 依賴於導航結構的正確實現

原始 README

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

Stunning Curved Bottom Navigation

Title Image

Preview

Preview

Optional Hide On Scroll

Preview

Getting Started

Add the dependency at pubspec.yaml:

dependencies:
  dot_curved_bottom_nav: ^0.0.1

Basic Usage

bottomNavigationBar: DotCurvedBottomNav(
    scrollController: _scrollController,
    hideOnScroll: true,
    indicatorColor: Colors.blue,
    backgroundColor: Colors.black,
    animationDuration: const Duration(milliseconds: 300),
    animationCurve: Curves.ease,
    selectedIndex: _currentPage,
    indicatorSize: 5,
    borderRadius: 25,
    height: 70,
    onTap: (index) {
    setState(() => _currentPage = index);
    },
    items: [
    Icon(
        Icons.home,
        color: _currentPage == 0 ? Colors.blue : Colors.white,
    ),
    Icon(
        Icons.notification_add,
        color: _currentPage == 1 ? Colors.blue : Colors.white,
    ),
    Icon(
        Icons.color_lens,
        color: _currentPage == 2 ? Colors.blue : Colors.white,
    ),
    Icon(
        Icons.person,
        color: _currentPage == 3 ? Colors.blue : Colors.white,
    ),
    ],
),

Properties

Property Description
scrollController Used to listen when the user scrolls and hides the bottom navigation
hideOnScroll Used to enable or disable hide on scroll behavior. (NOTE: scrollController must be provided when hideOnScroll is TRUE)
indicatorColor Color of the indicator displayed on currently selected item
backgroundColor Configures the background color of the bottom navigation
animationDuration Configures animation duration of hiding and indicator movement between items
animationCurve Configures curve of the animation of indicator movement and hide on scroll animation
selectedIndex Configures currently selected item / page
indicatorSize Configures the size of indicator displayed on top of the item
borderRadius Configures border radius of border DotCurvedBottomNav
height Configures height of DotCurvedBottomNav
onTap Configures callback function that is invoked whenever user taps on an item
items Configures list of items of bottom nav

TODO:

  1. Add More Indicator shapes e.g diamond shape with diamond cut out and more.

Contributions

Feel free to create an issue if you find a bug or if you need new features. Of course PRs are welcome!

If you want to connect with me on LinkedIn: Muzammil Hussain


If you like this work, please consider 👍 the package and ⭐ the repo. It is appreciated.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。