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

animated_rail 封面
套件詳情v2.0.2

animated_rail

帶有各種酷炫效果和選項(例如開啟和關閉軌道)的 Flutter 動畫導航軌道。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
121
喜歡數
50
Pub 分數
150

安裝套件

flutter pub add animated_rail

套件介紹

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

Animated Rail 是一個 Flutter 套件,透過具備多種視覺效果的動畫底部導航欄來增強導航體驗。它支援動態開合動畫,讓使用者能平滑切換導航欄的可見性。此套件專為現代、互動式介面設計,可無縫整合至需要跨平台優雅導航過渡的應用程式中。透過可自訂的行為與流暢的效能,為應用程式導航設計帶來精緻的質感。

適用情境

  • 互動式底部導航
  • 動態UI過渡
  • 移動和桌面應用程式導航
  • 可自定義的導航軌道
  • 透過動畫增強使用者體驗
  • 響應式佈局調整

主要特色

  • 多種動畫效果
  • 開啟/關閉切換功能
  • 跨平台支援
  • 可自定外觀
  • 平滑過渡動畫
  • 與現有 Flutter 項目輕鬆整合

適合對象

  • 尋求動畫導航的開發者
  • 具有複雜導航需求的應用程式
  • 注重設計的 Flutter 應用程式
  • 跨平台 Flutter 應用
  • UI/UX增強項目

使用建議

  • 可能影響低階裝置的效能
  • 需要仔細處理狀態管理
  • 超出內建效果的自訂功能有限
  • 最適合導航項目較少的應用程式
  • 不適合靜態導航佈局
  • 依賴外部GitHub倉庫進行更新

原始 README

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

Animated Naviation Rail for Flutter

Pub

Flutter Animated Naviation Rail with multiple cool effects see example project.

gif

Getting Started

Add the package to your pubspec.yaml:

animated_rail: any

In your dart file, import the library:

import 'package:animated_rail/index.dart';
  AnimatedRail(
        background: hexToColor('#8B77DD'),
        maxWidth: 275,
        width: 100,
        expand: false,
        isStatic: true,
        railTileConfig: RailTileConfig(
            iconSize: 22,
            iconColor: Colors.white,
            expandedTextStyle: TextStyle(fontSize: 15),
            collapsedTextStyle: TextStyle(fontSize: 12, color: Colors.white),
            activeColor: Colors.indigo,
            iconPadding: EdgeInsets.symmetric(vertical: 5),
            hideCollapsedText: true,
        ),
        items: [
          RailItem(
              icon: Icon(Icons.home),
              label: "Home",
              screen: _buildScreen('Home')),
          RailItem(
              icon: Icon(Icons.message_outlined),
              label: 'Messages',
              screen: _buildScreen('Messages')),
          RailItem(
              icon: Icon(Icons.notifications),
              label: "Notification",
              screen: _buildScreen('Notification')),
          RailItem(
              icon: Icon(Icons.person),
              label: 'Profile',
              screen: _buildScreen('Profile')),
        ],
      )
Parameters:
Name Description Required Default value
items the tabs of the rail as a list of object type [RailItem] required -
width the width of the rail when it is opened required 100
maxWidth the max width the rai will snap to, active when [exapnd] is equal true - 350
direction direction of rail if it is on the right or left required TextDirection.ltr
selectedIndex current selected Index dont use it unlessa you want to change the tabs programmatically - 0
background background of the rail - 0
expand if true the the rail can exapnd and reach [maxWidth] and the animation for text will take effect - true
isStatic if true the rail will not move vertically - false
railTileConfig Rail tile config - -
cursorSize Size of cursor - Size(100,100)
cursorActionType adds click trigger option to use on cursor - CursorActionTrigger.drag
builder custom widgt builder for rail menu items - -
future features

[x] full custom tab [x] add more customization to rail item [ ] custom rail pointer [ ] custom rail shape

Contributions are more than welcomed

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。