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

retracted

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
0
pub points
39%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on just_transitions