OutlinedButton.text constructor
OutlinedButton.text(
- String text, {
- Key? key,
- Color? color,
- double? minWidth,
- double? height,
- bool uppercase = true,
- bool busy = false,
- Color? busyColor,
- required VoidCallback? onPressed,
- Duration? loadingDebounce,
- BorderRadius? borderRadius,
- bool? guessTextColor,
- EdgeInsets? padding,
- bool disabled = false,
- double? borderWidth,
- ButtonStyle? style,
Implementation
factory OutlinedButton.text(
String text, {
Key? key,
Color? color,
double? minWidth,
double? height,
bool uppercase = true,
bool busy = false,
Color? busyColor,
required VoidCallback? onPressed,
Duration? loadingDebounce,
BorderRadius? borderRadius,
bool? guessTextColor,
EdgeInsets? padding,
bool disabled = false,
double? borderWidth,
ButtonStyle? style,
}) {
return OutlinedButton(
key: key,
color: color,
minWidth: minWidth,
height: height,
onPressed: onPressed,
busy: busy,
busyColor: busyColor,
loadingDebounce: loadingDebounce,
borderRadius: borderRadius,
guessTextColor: guessTextColor,
padding: padding,
disabled: disabled,
borderWidth: borderWidth,
style: style,
child: Text(uppercase ? text.toUpperCase() : text),
);
}