Skip to content

Add Hitbox to RenderObject #9

Open

Description

@kirya355

Is your feature request related to a problem? Please describe.
Currently, Widget1 (from Example) cannot receive gestures when Widget2WithPainter is positioned above it using Positioned.fill, even in areas where Widget2WithPainter is visually transparent. This blocks user interaction with Widget1 unnecessarily.

Describe the solution you'd like
Widget1 should be able to receive gestures in areas where Widget2WithPainter is visually transparent, while maintaining the visual layering of the widgets.

Additional context
Example:

Stack(
      children: [
       Widget1,
        const Positioned.fill(
          child: Widget2WithPainter(),
        ),
      ],
    );

Activity

  1. changed the title [-]Enable gesture handling for Widget1 through transparent areas of Widget2WithPainter[/-] [+]Add Hitbox to RenderObject[/+] on Jan 29, 2025
  2. self-assigned this
    on Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions