touch_interceptor

Creator: coderz1093

Last updated:

0 purchases

touch_interceptor Image
touch_interceptor Images
Add to Cart

Description:

touch interceptor

touch_interceptor #
A widget that intercepts touch events and sends them to other widgets underneath.

Useful when: #

there is an opaque layer over a widget, and you want to make it transparent to touch events
you want seamlessly transfer a touch event from one widget to another

Syntax: #
// interceptor
TouchInterceptor(
// other component(s)
child: OtherWidget(
// consumer
child: TouchConsumer(
onTouchDown: () {
// do something
},
onTouchUp: () {
// do something
},
onTouchEnter: () {
// do something
},
onTouchExit: () {
// do something
},
),
),
),
copied to clipboard
See the examples: #

Basic example
Frozen layer
Colorful pads

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.