icon_text_button
A button Widget that contain Icon and Text together.
Install
Examples
Apis
name | type | required | intro | mark |
---|---|---|---|---|
icon | Icon | required | The main icon | |
label | Text | required | The word under icon | |
onPress | VoidCallback | required | The event when you click | |
btnType | BtnType(enum) | The button style that you will use | The value is in [raise, outline, flat, icon] | |
color | Color | The color of icon & text | ||
size | Double | The size of whole button | ||
padding | EdgeInsetsGeometry | The Padding around icon & text | ||
bgColor | Color | The color of Background | ||
borderColor | Color | The color of border with outlineButton | ONLY FOR OutlineButton |