Skip to content
pubscout

ios_willpop_transition_theme

0.0.6, released 4 years ago by fluttercandies.com

Resolves conflicts between iOS sliding back gestures and WillPopScope in Flutter.

WASM-ready
$ flutter pub add ios_willpop_transition_theme
Source repository

What it does

Provides a custom PageTransitionsBuilder and PageRoute to allow smooth iOS-style swipe-to-back gestures while managing WillPop pop scopes properly. It can be applied globally via ThemeData or locally per route.

AI-written summary of version 0.0.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You have conflicts between iOS swipe back gestures and WillPopScope
  • You want custom page transitions that respect pop behavior

Skip it when

  • You do not need iOS-style navigation gestures
  • You are using a navigation framework that completely replaces standard Navigator routing

Strengths

  • Solves a specific known Flutter routing issue (#14203)
  • Can be used globally via PageTransitionsTheme or locally with WillPopPageRoute
  • Supports multiple platforms like iOS, Android, and macOS

Weaknesses

  • Limited documentation outside of the README
  • Very specific niche use case

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Override pageTransitionsTheme builders in your ThemeData or use WillPopPageRoute directly.

MaterialApp(
  theme: ThemeData(
    pageTransitionsTheme: const PageTransitionsTheme(
      builders: {
        TargetPlatform.iOS: IOSWillPopTransitionsBuilder(),
      },
    ),
  ),
  home: const Home(),
)