OutlinedButton.large constructor
OutlinedButton.large({
- Key? key,
- Widget? child,
- String? text,
- Color? color,
- bool uppercase = true,
- bool busy = false,
- required VoidCallback? onPressed,
- Color? busyColor,
- Duration? loadingDebounce,
- BorderRadius? borderRadius,
- bool? guessTextColor,
- EdgeInsets? padding,
- bool disabled = false,
- double? borderWidth,
- ButtonStyle? style,
Implementation
factory OutlinedButton.large({
Key? key,
Widget? child,
String? text,
Color? color,
bool uppercase = true,
bool busy = false,
required VoidCallback? onPressed,
Color? busyColor,
Duration? loadingDebounce,
BorderRadius? borderRadius,
bool? guessTextColor,
EdgeInsets? padding,
bool disabled = false,
double? borderWidth,
ButtonStyle? style,
}) {
assert(child != null || text != null,
"You must define either a child widget or a text");
return OutlinedButton(
key: key,
color: color,
minWidth: 340,
height: 48,
onPressed: onPressed,
busy: busy,
busyColor: busyColor,
loadingDebounce: loadingDebounce,
borderRadius: borderRadius,
guessTextColor: guessTextColor,
padding: padding,
disabled: disabled,
borderWidth: borderWidth,
style: style,
child:
child ?? Text(uppercase ? (text ?? '').toUpperCase() : (text ?? '')),
);
}