animate_routes
animate_routes 是一個極簡庫,可在您在螢幕之間導航時提供一些酷炫的動畫過渡效果。
AdamMusa/AnimateRoutes open-source repository details.
{"sdk":"flutter"}^2.1.2{"sdk":"flutter"}^2.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
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 .
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 .
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()));
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.
Any contribution is welcome!