- 25 September, 2023
- FlutterHQ.com
1 Flutter code samples, examples and snippets for the gestures-library
Get a better understanding on how to user the gestures-library with our list of code-samples, examples and snippets.
Latest samples and snippets for gestures
Gestures:PointerSignalResolver
sample.packages.flutter.lib.src.gestures.pointer_signal_resolver.40
-
sample.packages.flutter.lib.src.gestures.pointer_signal_resolver.40
Here is an example that demonstrates the effect of not using the resolver
versus using it.
When this example is set to _not_ use the resolver, then triggering the
mouse wheel over the outer box will cause only the outer box to change
color, but triggering the mouse wheel over the inner box will cause _both_
the outer and the inner boxes to change color (because they're both
receiving the event).
When this example is set to _use_ the resolver, then only the box located
directly under the cursor will change color when the mouse wheel is
triggered.