Skip to Content

Button

A tappable button with a text label. Renders using theme-aware primitives. Supports hover and disabled visual states.

Constructor

Button

Creates a Button element.

ParameterDescription
labelThe text label to display.
onPressedThe callback invoked on press. Null means disabled.
keyAn optional key for reconciliation identity.

Properties

Label

The text label displayed on the button.

OnPressed

The callback invoked when the button is pressed. Null means the button is disabled.

Methods

CreateState

Last updated on