Skip to content
pubscout

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.

$ flutter pub add swipeable_page_route
Source repository

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.

  • go_router

    For standard declarative routing maintained by the official Flutter team.

Works with

Packages commonly used together with swipeable_page_route: ones it builds on, ones built on it, and its own family.