touch_interceptor 0.1.1 copy "touch_interceptor: ^0.1.1" to clipboard
touch_interceptor: ^0.1.1 copied to clipboard

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

touch_interceptor #

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

Schema

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
      },
    ),
  ),
),

See the examples: #

14
likes
140
pub points
54%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on touch_interceptor