Skip to Content
API ReferenceWidthProbe

WidthProbe

A zero-height element that stretches to fill its parent’s width and fires OnWidth with the resolved pixel width whenever layout changes. Use this to measure available width before committing to explicit column widths.

Constructor

WidthProbe

Creates a WidthProbe.

ParameterDescription
onWidthCallback invoked with the resolved width. Must not be null.
keyAn optional key for reconciliation identity.

Properties

OnWidth

Invoked with the resolved width in logical pixels each time the layout changes.

Last updated on