ContainedButton.large constructor
ContainedButton.large({
- Key? key,
- Widget? child,
- String? text,
- WidgetStateProperty<
Color?> ? color, - GBButtonGradient? gradient,
- bool uppercase = true,
- bool busy = false,
- Color? busyColor,
- required VoidCallback? onPressed,
- Duration? loadingDebounce,
- BorderRadius? borderRadius,
- bool guessTextColor = true,
- EdgeInsets? padding,
- bool disabled = false,
- ButtonStyle? style,
Implementation
factory ContainedButton.large({
Key? key,
Widget? child,
String? text,
WidgetStateProperty<Color?>? color,
GBButtonGradient? gradient,
bool uppercase = true,
bool busy = false,
Color? busyColor,
required VoidCallback? onPressed,
Duration? loadingDebounce,
BorderRadius? borderRadius,
bool guessTextColor = true,
EdgeInsets? padding,
bool disabled = false,
ButtonStyle? style,
}) {
assert(child == null || text == null);
return ContainedButton(
key: key,
color: color,
gradient: gradient,
minWidth: 340,
height: 48,
onPressed: onPressed,
busy: busy,
busyColor: busyColor,
loadingDebounce: loadingDebounce,
borderRadius: borderRadius,
guessTextColor: guessTextColor,
padding: padding,
disabled: disabled,
style: style,
child:
child ?? Text(uppercase ? (text ?? '').toUpperCase() : (text ?? '')),
);
}