just_transitions

Last updated:

0 purchases

just_transitions Image
just_transitions Images
Add to Cart

Description:

just transitions

JustTransitions #
A package to make it easy to navigate between routes using animations and customizing them with some features.
Available transitions #

Without animation
Material
Cupertino
Fade
Size
Scale
Slide

Getting started #
Just import this library in the pubspec.yaml.
All done.
Usage #
To navigate to a new page, the following is normally used:
Navigator.push(
context,
MaterialPageRoute(
builder: (BuildContext context) {
return NewPage();
},
),
);
copied to clipboard
Or it is also used:
Navigator.push(
context,
CupertinoPageRoute(
builder: (BuildContext context) {
return NewPage();
},
),
);
copied to clipboard
With this library you can reduce all of the above to:
JustTransitions.goTo(
context: context,
page: NewPage(),
);
copied to clipboard
If the property type is not defined, JustTransitionType.material() is used by default.
The property type can be:

JustTransitionType.none()
JustTransitionType.material()
JustTransitionType.cupertino()
JustTransitionType.fade()
JustTransitionType.size()
JustTransitionType.scale()
JustTransitionType.slide()

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.