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