Button
API
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| disabled | bool | false | the state of disabled |
| width | double | button width. | |
| height | double | button height. | |
| shadow | bool | true | whether to enable box shadow. |
| padding | EdgeInsetsGeometry | 8 | button padding. |
| radius | double | 20 | border radius. |
| text | String | button label. | |
| icon | IconData | icon data. | |
| iconSize | double | 16 | icon size. |
| textSize | double | 12 | text size. |
| type | CxButtonType | solid | button type. fill, solid, text are the states of the button. |
| color | Color | blue | button color. |
| textColor | Color | white | the label color. |
| iconColor | Color | white | the icon color. |
Methods
| Property | Type | Default | Description |
|---|---|---|---|
| onTap | void Function | click event |