dismissible_page
2.1.1, released 11 days ago by tornike.dev
Widget that lets you dismiss a page in any direction with custom gestures
What it does
DismissiblePage wraps a child and allows the user to swipe the page away in any direction. It handles nested scrollables, custom thresholds, haptics, and provides a handle to control dismissal programmatically.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a custom page dismissal gesture instead of the default back button
- You need to dismiss a page from code or confirm dismissal before popping
- You need to coordinate dismissal with inner scrollables like ListView or PageView
Skip it when
- You only need the standard Navigator.pop behavior
- Your app targets Flutter versions older than 3.27
Strengths
- Easy to integrate with a single widget
- Supports all major platforms and nested scrollables
- Highly customizable thresholds, directions, and visual effects
Weaknesses
- Requires Flutter >=3.27, not usable on older SDKs
- No built‑in support for deep link navigation or complex route stacks
- Limited to page dismissal, not general navigation
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency, import package, wrap target page with DismissiblePage or use builder for scrollables
import 'package:dismissible_page/dismissible_page.dart';
class SecondPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return DismissiblePage(
onDismissed: () => Navigator.of(context).pop(),
child: Center(child: Text('Swipe to dismiss')),
);
}
}Alternatives
Packages that do the same job and could replace dismissible_page.
- flutter_qiblah
Widget that displays Qiblah direction using device sensors and location.
56Compare - double_back_to_close_app
Provides a widget that requires a double back press to exit the app on Android.
50Compare - onboarding
This is a widget that allows developers to create an on-boarding landing page for flutter applications.
50Compare - rounded_loading_button_plus
Animated button with loading, success and error states for Flutter.
50Compare