Search packages, repositories and app categories

Package detailsv2.0.0

swipe_back_detector

A detector to add "swipe to go back" functionality in custom routes or non Cupertino routes.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.4K
Likes
15
Pub points
160

Install package

flutter pub add swipe_back_detector

Package Overview

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

SwipeBackDetector is a Flutter package that enables swipe-to-go-back functionality in custom routes, offering a native-like back gesture experience even outside of Cupertino routes. It works across all major platforms including Android, iOS, Web, macOS, Windows, and Linux. The detector integrates seamlessly into any route or page, allowing users to navigate back by swiping from the edge of the screen. Ideal for apps with custom navigation flows, it enhances usability without requiring complex implementation. The package is lightweight and designed for developers seeking intuitive navigation gestures.

Use cases

  • Custom route navigation
  • Non-Cupertino navigation flows
  • Enhancing user experience with swipe gestures
  • Cross-platform gesture support
  • Implementing edge-swipe back in web apps
  • Adding swipe-to-go-back to modal screens

Key features

  • Edge swipe detection
  • Works with custom routes
  • Cross-platform compatibility
  • Lightweight and easy integration
  • Supports multiple platforms
  • Configurable gesture sensitivity

Suitable for

  • Developers building custom navigation
  • Apps needing swipe-to-back on non-Cupertino routes
  • Projects targeting multiple platforms
  • UX-focused mobile and web applications
  • Teams wanting native-like gestures without Cupertino

Considerations

  • May conflict with other gesture detectors
  • Requires careful handling in nested navigators
  • Not compatible with some third-party routing solutions
  • Limited customization for gesture behavior
  • Needs testing on all target platforms
  • Potential performance impact with heavy widgets

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

swipe_back_detector

A detector to add "swipe to go back" functionality in custom routes or non cupertino routes.

Attributes

  • child: is the child to wrap with the pop gesture detector
  • cutoffVelocity: is the minimum velocity needed for the gesture to trigger
  • swipeAreaWidth: is the width of the detection area
  • verticalPadding: allows to restrict the detection area remaining vertically centered
  • popValue: is the value you want to pop out when performing a gesture

Todos:

  • [ ] Add RTL support

Categories

Source repository

Projects using this package

No data available yet.