You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add onLongPressUp callback to InkWell widget (flutter#173221)
This PR introduces a new optional callback, onLongPressUp, to the
InkWell widget.
It allows developers to respond specifically to the moment when a long
press gesture is released, which previously was not directly exposed.
**Before**
There was no way to distinguish between the long press being held and
the moment it ended.
**After**
InkWell now accepts an onLongPressUp callback, which fires when the user
lifts their finger after a long press gesture.
This change enhances gesture handling granularity for widgets that
require different behaviors for long press hold and release.
**Related Issue**
flutter#173390
**Tests**
- Added a new test to ink_well_test.dart verifying that onLongPressUp is
correctly triggered after a long press is released.
**Checklist**
- I read the [Contributor Guide] and followed the process outlined there
for submitting PRs.
- I read the [Tree Hygiene] wiki page.
- I followed the [Flutter Style Guide].
- I signed the [CLA].
- I updated/added relevant documentation (/// doc comments).
- I added new tests to check the change I am making.
- All existing and new tests are passing.
---------
Co-authored-by: Victor Sanni <[email protected]>
Co-authored-by: engine-flutter-autoroll <[email protected]>
Co-authored-by: Reid Baker <[email protected]>
Co-authored-by: Jon Ihlas <[email protected]>
Co-authored-by: Matthew Kosarek <[email protected]>
Co-authored-by: gaaclarke <[email protected]>
Co-authored-by: Micael Cid <[email protected]>
Co-authored-by: Alexander Aprelev <[email protected]>
Co-authored-by: Tong Mu <[email protected]>
0 commit comments