flutter/examples
Renzo Olivares 21ad7122a1
Implement SelectionArea single click/tap gestures (#132682)
This change collapses the selection at the clicked/tapped location on single click down for desktop platforms, and on single click/tap up for mobile platforms to match native.

This is a change from how `SelectionArea` previously worked. Before this change a single click down would clear the selection. From observing a native browser it looks like when tapping on static text the selection is not cleared but collapsed. A user can still attain the selection from static text using the `window.getSelection` API.

https://jsfiddle.net/juepasn3/11/ You can try this demo out here to observe this behavior yourself. When clicking on static text the selection will change.

This change also allows `Paragraph.selections` to return selections that are collapsed. This for testing purposes to confirm where the selection has been collapsed.

Partially fixes: #129583
2023-09-28 01:42:16 +00:00
..
api Implement SelectionArea single click/tap gestures (#132682) 2023-09-28 01:42:16 +00:00
flutter_view [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
hello_world Refactor "app plugin loader" Gradle Plugin so it can be applied using the declarative plugins {} block (#127897) 2023-09-22 16:31:48 +00:00
image_list [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
layers [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
platform_channel [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
platform_channel_swift [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
platform_view [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
splash [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
texture [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
.clang-format Implement Linux part of examples (#108068) 2022-12-08 08:44:11 +13:00
flutter_gallery.readme Move flutter_gallery to the testing folder (#52532) 2020-03-16 10:31:42 +01:00
README.md Fix typo in README.md (#126053) 2023-05-04 14:58:17 +02:00

Flutter Examples

This directory contains several examples of using Flutter. To run an example, use flutter run inside that example's directory. See the getting started guide to install the flutter tool.

For additional samples, see the flutter/samples repo.

Available examples include:

Notes

Note on Gradle wrapper files in .gitignore:

Gradle wrapper files should normally be checked into source control. The example projects don't do that to avoid having several copies of the wrapper binary in the Flutter repo. Instead, the Gradle wrapper is injected by Flutter tooling, and the wrapper files are .gitignore'd to avoid making the Flutter repository dirty as a side effect of running the examples.