Button
Overview
Buttons are clickable elements that are used to trigger actions. They communicate calls to action to the user and allow users to interact with pages in a variety of ways. Button labels express what action will occur when the user interacts with it.
Widget API
Property | Description |
---|---|
onTap | Called when the button is tapped.
|
label | A text to display in the button.
|
enable | Whether the toggle is enabled or not.
|
kind | The kind that the button represents. It can be
|
size | The size of this button. It can be
|
icon | An optional icon to display in the button.
|
expand | Whether the button should fill the available width.
|
labelSize | The size (in logical pixels) to use when painting the label.
|
Example
Last updated