UiFlatButton.text constructor
UiFlatButton.text({
- required String label,
- Widget? icon,
- required VoidCallback? onPressed,
- bool isLoading = false,
- bool expand = false,
- EdgeInsets? padding,
- double borderRadius = 8,
- double elevation = 0,
- Color textColor = Colors.blue,
- TextStyle? labelStyle,
Factory for text style
Implementation
factory UiFlatButton.text({
required String label,
Widget? icon,
required VoidCallback? onPressed,
bool isLoading = false,
bool expand = false,
EdgeInsets? padding,
double borderRadius = 8,
double elevation = 0,
Color textColor = Colors.blue,
TextStyle? labelStyle,
}) {
return UiFlatButton(
label: label,
icon: icon,
onPressed: onPressed,
isLoading: isLoading,
expand: expand,
padding: padding,
borderRadius: borderRadius,
elevation: elevation,
backgroundColor: Colors.transparent,
textColor: textColor,
borderColor: Colors.transparent,
labelStyle: labelStyle,
);
}