swipeable_page_route
0.4.8, released 11 months ago by wanke.dev
A specialized page route allowing users to navigate back by swiping anywhere.
What it does
SwipeablePageRoute is a CupertinoPageRoute variant that lets users trigger a back navigation by swiping anywhere on the screen instead of just the edge. It also provides MorphingAppBar and MorphingSliverAppBar widgets that seamlessly animate app bar contents between pages.
AI-written summary of version 0.4.8, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want full-screen edge swipe back navigation similar to iOS style routes.
- You need smooth widget morphing animations for app bars between different screens.
- You are using Go Router and want to use custom swipeable page transitions.
Skip it when
- You need a standard default Material page route without custom gestures.
- You do not want to manage Hero controllers or widget keys for app bar animations.
Strengths
- Allows full-screen swipe-to-back gestures.
- Includes morphing app bars that animate titles, actions, and backgrounds smoothly.
- Compatible with Go Router via SwipeablePage.
Weaknesses
- Requires proper key configuration on app bar actions for correct transition animations.
- Must set SwipeablePageTransitionsBuilder for TargetPlatform.iOS if using PageTransitionsTheme.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Not documented
Navigator.of(context).push(SwipeablePageRoute(
builder: (BuildContext context) => MyPageContent(),
));Alternatives
Packages that do the same job and could replace swipeable_page_route.
- auto_route
For advanced declarative routing and deep linking code generation.
87Compare - go_router
For standard declarative routing maintained by the official Flutter team.
98Compare
Works with
Packages commonly used together with swipeable_page_route: ones it builds on, ones built on it, and its own family.
- list_diffswipeable_page_route depends on itCalculates a minimal list of operations to convert one list into another.
- black_hole_flutterswipeable_page_route depends on itFlutter utility functions, extension methods, and custom widgets.
- debug_overlaySame familyAdds a configurable debug overlay with tools like logs, media query info, and theme overrides.