搜索插件、代码仓与 APP 分类

animated_rail 封面
插件详情v2.0.2

animated_rail

带有多种酷炫效果和选项(如打开和关闭轨道)的 Flutter 动画导航轨道。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
164
喜欢数
50
Pub 分数
150

安装插件

flutter pub add animated_rail

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Animated Rail 是一个 Flutter 包,通过具有多种视觉效果的动画底部导航栏来增强导航体验。它支持动态开合动画,允许用户平滑地切换导航栏的可见性。该包专为现代、交互式 UI 设计,可无缝集成到需要跨平台优雅导航过渡的应用程序中。通过可自定义的行为和流畅的性能,为应用导航设计带来精致的质感。

适合场景

  • 交互式底部导航
  • 动态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

所属分类

源码仓库

使用此插件的项目

暂无相关数据。