Skip to content

Button hit testing #2

Description

@justinmc

Would it be possible to implement correct, non-rectangular hit testing for the buttons? Currently, hovering over the corner cutout is considered a hit because it's part of the button's rectangular axis-aligned bounding box, even though it is visually not part of the button:

Image

Flutter allows you to do this kind of thing by overriding hitTest in a RenderBox or CustomPainter. However, it may be more trouble than it's worth if you have to recreate Flutter's button in order to access hitTest :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions