page_transition
2.2.2, released 6 months ago by yasinilhan.com
Flutter package that provides customizable page transitions with an easy-to-use API.
What it does
Provides a variety of customizable page transition animations such as fade, slide, and scale. Supports integration with standard Navigator as well as routing packages like GoRouter and AutoRoute. It includes extensions for context-based navigation and handles custom durations, curves, and iOS swipe-back gestures.
AI-written summary of version 2.2.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want custom, smooth page transition animations without writing custom PageRouteBuilder boilerplate
- You are using GoRouter, AutoRoute, or standard Navigator and need custom page transition effects
Skip it when
- You rely completely on native platform transitions and have no need for customized animations
Strengths
- Wide variety of transition types including Material 3 shared axis transitions
- Convenient context extensions for clean navigation code
- Compatible with GoRouter and AutoRoute
Weaknesses
- iOS swipe back gesture only works with rightToLeft and fade transitions
- Adds overhead to routing configuration if deep customization isn't required
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
context.pushTransition(
type: PageTransitionType.fade,
child: DetailScreen(),
);Alternatives
Packages that do the same job and could replace page_transition.
- go_transitions
Create, combine and apply custom page transitions to routes with GoRouter and Navigator.
72Compare - cupertino_will_pop_scope
Enables onWillPop callbacks on Cupertino page transitions and improves swipe-to-go-back feedback.
50Compare - universal_back_gesture
Universal and customizable back gesture for any custom page transitions in Flutter.
46Compare - custom_will_pop_scope
Enables onWillPop callbacks on Cupertino page transitions and improves gesture feedback.
46Compare
Works with
Packages commonly used together with page_transition: ones it builds on, ones built on it, and its own family.