selfSizing property

bool selfSizing
final

Whether the native component reports its intrinsic content size back to Flutter. When true (default), the component is wrapped in a _MeasuredSizeBox that sizes itself to the native-reported dimensions — suitable for buttons, badges, grids and any component with a finite intrinsic size.

Set to false for components that fill the space the host provides (e.g. scrollable views). In that case the host must supply bounded constraints — typically via a SizedBox or Expanded wrapper.

Implementation

final bool selfSizing;