cupertino_back_gesture
0.1.0, released 6 years ago by an unverified publisher
Provides a widget to customize the iOS back swipe gesture width.
What it does
Adds a theme widget that lets you set a fixed or fractional width for the iOS back‑gesture area. It works with CupertinoPageTransitionsBuilderCustomBackGestureWidth to apply the setting app‑wide.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to increase or limit the swipe‑back zone on iOS devices
- You want a consistent back‑gesture width across the whole app
Skip it when
- The app runs only on Android or other platforms
- You are fine with Flutter's default back‑gesture behavior
Strengths
- Simple API with fixed or fractional options
- Null‑safe and works with existing MaterialApp
- No extra native setup required
Weaknesses
- Only affects iOS back‑gesture, no effect on other platforms
- Limited to width customization, no other gesture tweaks
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
BackGestureWidthTheme(
backGestureWidth: BackGestureWidth.fraction(1/2),
child: MaterialApp(
theme: ThemeData(
pageTransitionsTheme: PageTransitionsTheme(
builders: {
TargetPlatform.android: FadeUpwardsPageTransitionsBuilder(),
TargetPlatform.iOS: CupertinoPageTransitionsBuilderCustomBackGestureWidth(),
},
),
),
home: MainPage(),
),
)Alternatives
Packages that do the same job and could replace cupertino_back_gesture.
- custom_refresh_indicator
Widget that makes it easy to implement a custom pull to refresh gesture.
81Compare - gestures
Custom gesture detector widget for Flutter
50Compare - tap_builder
A simple widget for building interactive areas with customizable visual effects.
50Compare - swipe_refresh
Widgets providing pull-down refresh capability with Material and Cupertino styles.
50Compare