just_transitions 1.0.1 copy "just_transitions: ^1.0.1" to clipboard
just_transitions: ^1.0.1 copied to clipboard

A package to make it easy to navigate between routes using animations and customizing them with different features.

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();
        },
    ),
);

Or it is also used:

Navigator.push(
    context,
    CupertinoPageRoute(
        builder: (BuildContext context) {
            return NewPage();
        },
    ),
);

With this library you can reduce all of the above to:

JustTransitions.goTo(
    context: context,
    page: NewPage(),
);

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()
1
likes
160
points
41
downloads

Publisher

unverified uploader

Weekly Downloads

A package to make it easy to navigate between routes using animations and customizing them with different features.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on just_transitions