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

插件详情v0.0.7

animate_routes

animate_routes 是一个极简库,可在您在屏幕之间导航时提供一些酷炫的动画过渡效果。

近 30 天下载
68
喜欢数
26
Pub 分数
70

安装插件

flutter pub add animate_routes

插件介绍

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

animate_routes 是一个轻量级的 Flutter 包,可实现流畅且视觉效果出色的屏幕过渡动画,并支持自定义动画。设计简洁,使开发者能够轻松地在路由之间导航时添加进入和退出动画。该库可无缝集成到现有的 Flutter 应用中,无需复杂的设置。它支持常见的动画类型,如滑动、淡入淡出和缩放效果,通过流畅的导航提升用户体验。非常适合希望以最小努力提升 UI 精致度的应用。

适合场景

  • 在移动应用中添加动画屏幕过渡
  • 通过导航过程中的视觉反馈提升用户体验
  • 创建精美的入门流程
  • 使用最少的代码实现自定义路由动画
  • 通过细微的动态效果提升应用美感

主要特点

  • 极简 API 设计
  • 支持多种动画类型(滑动、淡入淡出、缩放)
  • 与 MaterialApp 或 Navigator 的轻松集成
  • 可自定义的动画持续时间和曲线
  • 轻量且无依赖

适合对象

  • Flutter 初学者探索动画
  • 寻求快速 UI 增强的开发者
  • 带有引导或教程屏幕的应用程序
  • 专注于通过动态效果提升用户参与度的项目
  • 注重代码清晰性和可维护性的团队

使用建议

  • 仅限基本动画类型
  • 无内置的复杂自定义动画支持
  • 可能需要额外的样式设置以实现高级效果
  • 不适合高度动态或数据驱动的过渡
  • 依赖外部 GitHub 仓库以获取更新

原始 README

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

animate_routes is a minimalist library to provider some cool transition animation when you navigate between the screens ,also provide some shorcuts to navigate easily and you can open the dialog in just three lines of code .

Features

animate_routes isn't a route manger itself is just a hack of productivy . AnimatedRoute allow you to open snackbar, open bottomSheet and dialog easily with less boilerplate .

Getting started

Installing

Add animate_routes to your pubspec.yaml file:

dependencies:
  animate_routes:

Import animate_routes in files that it will be used:

import 'package:animate_routes/animate_routes.dart';

You can use just like this

context.go(AnimateRoute(transition:Transition.downToUp,screen:Home()));
or 
Navigator.of(context).push(AnimateRoute(transition:Transition.downToUp,screen:Home()));

animate_routes provide a cool and easy api to open dialog

with animate_routes is very easi to open and animate dialog with just one line of code

context.openDialog();

or 

context.openDialog(
  transition:TransitionDialog.left,
  title: 'My title',
  content: "My content"
);

Want to contribute to the project? We will be proud to highlight you as one of our collaborators. Here are some points where you can contribute and make animate_routes even better.

  • Helping to add more features
  • Offering PRs for code/tests.
  • Including new functions.

Any contribution is welcome!

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。