Skip to content

Add Hitbox to RenderObject #9

@kirya355

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(),
        ),
      ],
    );

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