Skip to content
pubscout

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

WASM-readyRock solid
$ flutter pub add dismissible_page
Source repository

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.