ShapeWidgetBuilder typedef

ShapeWidgetBuilder = Widget Function(BuildContext context, ShapeWidgetContext shape)

Builds a live control projection for a registered shape widget slot.

Keep the root surface transparent: the shape definition owns its background and border. The canvas selects and moves the owner from unclaimed slot space; descendants such as sliders, buttons and text fields own their gestures. Attach gesture recognizers only to actual controls, not decorative containers. IgnorePointer may wrap decorative overlays, but must not wrap live controls.

Implementation

typedef ShapeWidgetBuilder = Widget Function(
  BuildContext context,
  ShapeWidgetContext shape,
);