FLUTTER ECOSYSTEM

double_back_to_close

Flutter package for request double back pressed before close app/route/screen. Wrap any widget with it to use.

double_back_to_close cover
Latest version
2.0.0
30-day downloads
454
Likes
65
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Flutter package that prompts users to press the back button twice before closing an app, route, or screen. It wraps any widget to enable this behavior, helping prevent accidental exits. Ideal for mobile and desktop apps where unintended navigation could disrupt user experience. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux, ensuring consistent functionality across devices.

Use cases
  • Preventing accidental app closure
  • Enhancing user experience in mobile apps
  • Avoiding unintended route dismissal
  • Protecting critical workflows
  • Ensuring intentional navigation exit
  • Supporting multi-platform applications
Key features
  • Double back press detection
  • Cross-platform compatibility
  • Simple widget wrapping
  • Customizable timeout
  • Minimal configuration required
  • Works with routes and screens
Suitable for
  • Mobile app developers
  • Desktop app creators
  • UX-focused projects
  • Apps with sensitive workflows
  • Developers seeking simple exit protection
  • Multi-platform Flutter apps
Considerations
  • May not be suitable for all UI patterns
  • Requires user awareness of double-press behavior
  • Timeout settings may need tuning
  • Not ideal for fast-paced interactions
  • Limited customization options
  • Potential accessibility concerns for some users
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add double_back_to_close

Categories

Source repository

Related projects

No data available yet.