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

curved_drawer_fork 封面
插件详情v0.0.1+1

curved_drawer_fork

一个易于使用的动画抽屉 Flutter 小部件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
4
喜欢数
77
Pub 分数
140

安装插件

flutter pub add curved_drawer_fork

插件介绍

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

一个 Flutter 包,提供一种动画曲线抽屉小部件,用于直观导航。作为原始曲线抽屉的分支构建,它通过流畅的动画和可自定义的设计增强了可用性。非常适合需要现代、视觉吸引人导航体验的应用程序。该小部件支持多个平台,包括 Android、iOS、Web、macOS、Windows 和 Linux,确保跨平台一致性。轻量级且易于集成,设置简单。

适合场景

  • 创建现代应用程序导航
  • 通过动画抽屉增强用户界面
  • 跨平台构建响应式布局
  • 为移动应用和网页应用增添视觉魅力
  • 实现可滑动的侧边菜单

主要特点

  • 流畅的动画过渡
  • 可定制的曲线形状
  • 跨平台支持
  • 与现有 Flutter 项目轻松集成
  • 轻量且高效

适合对象

  • 寻求动画导航的开发者
  • 注重设计的应用程序界面
  • 跨平台 Flutter 应用
  • UI/UX增强项目
  • 带有交互式侧边栏的应用

使用建议

  • 可能需要额外的样式才能实现复杂的设计
  • 超出基本曲线参数的自定义功能有限
  • 依赖于父控件的布局约束
  • 不太适合高度复杂的导航层次结构
  • 最适合简单到中等复杂度的抽屉需求

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

curved_drawer

A Flutter widget that provides an easy to use animated drawer.

Gif

Add dependency
dependencies:
  curved_drawer: ^0.1.2 #latest version
Simple Implementation
Scaffold(
  drawer: CurvedDrawer(
    color: Colors.white,
    labelColor: Colors.black54,
    width: 75.0
    items: <DrawerItem>[
      DrawerItem(icon: personIcon),
      //Optional Label Text
      DrawerItem(icon: messageIcon, label: "Messages")
    ],
    onTap: (index) {
      //Handle button tap
    },
  ),
  body: Container(),
)
Attributes

items: List of DrawerItems index: Index of selected item - can be used to change current index or to set initial index
color: Color of drawer - default Colors.white buttonBackgroundColor: Background color of floating button - default same as color attribute
backgroundColor: Color of NavigationBar's background - default Colors.transparent onTap: Function handling taps on items
animationCurve: Curves interpolating button change animation - default Curves.easeOutCubic
animationDuration: Duration of button change animation - default Duration(milliseconds: 600)
width: Width of Drawer - default min 50.0, max 100.0 isEndDrawer: Set to true if used as as an end drawer - default is false

所属分类

源码仓库

使用此插件的项目

暂无相关数据。