Skip to content

Feature Request: TransformableBox should enable onTap Event Propagation to Child Widgets #31

@AndersKlint

Description

@AndersKlint

Is your feature request related to a problem? Please describe.
When tapping inside the box, I want the child to catch the onTap event. In my case I show the box over a camera feed which supports onTaps to focus the camera on that point. If I tap inside the box, the underlying camera feed should catch that event.

Describe the solution you'd like

  • Either add shouldCaptureTapEvents parameter. True by default.
  • include tapDetails in the onTap callback of TransformableBox.

Describe alternatives you've considered
Maybe there's a solution around this? I tried wrapping the Transformable box in a GestureDetector, but it throws an exception as it excepts to be a direct ancestor of a stack. Moving the detector to the TransformableBox's doesn't work either, as it seems the box catches the tap events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions