ContainedButton.text constructor
ContainedButton.text(
- String text, {
- MaterialStateProperty<
Color?> ? color, - List<
MaterialStateProperty< ? colors,Color> > - double? minWidth,
- double? height,
- bool uppercase = true,
- bool busy = false,
- Color? busyColor,
- required void onPressed(),
- Duration? loadingDebounce,
- BorderRadius? borderRadius,
- bool guessTextColor = true,
- EdgeInsets? padding,
- bool disabled = false,
- Key? key,
Implementation
factory ContainedButton.text(
String text, {
final MaterialStateProperty<Color?>? color,
final List<MaterialStateProperty<Color>>? colors,
final double? minWidth,
final double? height,
final bool uppercase = true,
bool busy = false,
Color? busyColor,
required void Function() onPressed,
Duration? loadingDebounce,
BorderRadius? borderRadius,
bool guessTextColor = true,
EdgeInsets? padding,
bool disabled = false,
Key? key,
}) {
return ContainedButton(
color: color,
colors: colors,
child: GBText(
uppercase ? text.toUpperCase() : text,
),
minWidth: minWidth,
height: height,
onPressed: onPressed,
busy: busy,
busyColor: busyColor,
loadingDebounce: loadingDebounce,
borderRadius: borderRadius,
guessTextColor: guessTextColor,
padding: padding,
disabled: disabled,
key: key,
);
}