Skip to content
pubscout

release_to_trigger

2.0.1, released 5 months ago by an unverified publisher

A customizable pull-to-reveal and swipe-to-trigger widget for Flutter.

WASM-ready
$ flutter pub add release_to_trigger
Source repository

What it does

Wrap any widget to capture vertical or horizontal pull gestures and trigger custom actions. Supports multi‑stage thresholds, long‑press combo locks, shake‑to‑cancel and a built‑in pull‑to‑refresh constructor.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a generic gesture wrapper beyond the standard RefreshIndicator
  • You want multi‑stage pull thresholds or secure long‑press‑then‑drag interactions
  • You require shake‑to‑cancel or real‑time progress callbacks

Skip it when

  • Only a simple list refresh is required
  • You prefer a full‑featured UI kit rather than a low‑level primitive
  • You need heavy state‑management or dependency‑injection solutions

Strengths

  • Highly customizable with multi‑direction and multi‑stage support
  • Built‑in secure combo lock and shake‑to‑cancel features
  • No runtime third‑party dependencies besides sensors_plus
  • Provides a progress stream for advanced effects

Weaknesses

  • Adds a sensor dependency which may need permissions on Android/iOS
  • May be overkill for simple pull‑to‑refresh use cases
  • Limited to gesture handling; not a complete UI kit

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Add the package and, if using shake‑to‑cancel, ensure sensors_plus is configured (Android may require sensor permissions).

ReleaseToTrigger(
  initialText: 'Pull down to reveal',
  triggeredText: 'Release to unlock',
  onTrigger: () => setState(() => _showPanel = true),
  child: const HomeScreenBody(),
);

Alternatives

Packages that do the same job and could replace release_to_trigger.

Works with

Packages commonly used together with release_to_trigger: ones it builds on, ones built on it, and its own family.