flutter/packages
Tong Mu 87f68a8876
[CupertinoActionSheet] Add sliding tap gesture (#149471)
This PR implements the `CupertinoActionSheet` part of https://github.com/flutter/flutter/issues/19786. 

This PR creates a new kind of gesture "sliding tap", which can be a simple tap but also allows the user to slide to other buttons during the tap, and select the button that the slide ends in.

The following video shows the behavior on a button list (left to right: Native iOS, after PR, before PR):

https://github.com/flutter/flutter/assets/1596656/1718630d-6890-4833-908b-762332a39568

Notice:
1. When the tap starts on a button or on the content section, the gesture can slide into a button to highlight it or activate it.
2. When the user performs a quick tap on a button, the button is immediately highlighted. (Before the PR, the highlight waits until the time out of a tap gesture, causing a quick tap to not highlight anything at all.)

The following video shows the behavior when the actions section scrolls (left to right: Native iOS, after PR)

https://github.com/flutter/flutter/assets/1596656/5eb70bc1-ec25-4376-9500-2aaa12f0034b

Notice:
1. Moving left or right doesn't cancel sliding tap, but moving vertically prioritizes the scrolling.
2. Moving before the drag starts is also recognized as a sliding tap.

Also, multiple pointers interact with the button list following an algorithm of "using earliest pointer". I can't record videos about it but I've added unit tests.
2024-06-06 22:41:05 +00:00
..
flutter [CupertinoActionSheet] Add sliding tap gesture (#149471) 2024-06-06 22:41:05 +00:00
flutter_driver Roll pub packages (#149852) 2024-06-06 22:35:15 +00:00
flutter_goldens Remove abi key from local golden file testing (#149696) 2024-06-05 23:51:11 +00:00
flutter_localizations Roll pub packages (#149617) 2024-06-03 22:15:41 +00:00
flutter_test Add support for setting the heading level for web semantics (#97894) (#125771) 2024-06-06 21:24:26 +00:00
flutter_tools Roll pub packages (#149852) 2024-06-06 22:35:15 +00:00
flutter_web_plugins Roll pub packages (#149617) 2024-06-03 22:15:41 +00:00
fuchsia_remote_debug_protocol Roll pub packages (#149852) 2024-06-06 22:35:15 +00:00
integration_test Roll pub packages (#149852) 2024-06-06 22:35:15 +00:00
analysis_options.yaml