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.
| Parameter | Description |
|---|---|
label | The text label to display. |
onPressed | The callback invoked on press. Null means disabled. |
key | An 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