icon_text_button 0.1.6 icon_text_button: ^0.1.6 copied to clipboard
A button Widget with Icon and Text together.Write with pure Dart, so you can use it cross Android and iOS.
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 |