LinkButton.text constructor
LinkButton.text(
- String text, {
- Key? key,
- required VoidCallback? onPressed,
- Widget? prefix,
- Widget? trail,
- bool uppercase = true,
- bool busy = false,
- Color? busyColor,
- Duration? loadingDebounce,
- Color? color,
- double? height,
- double? hegiht,
- double minWidth = 74,
- bool withInk = true,
- bool disabled = false,
- ButtonStyle? style,
Implementation
factory LinkButton.text(
String text, {
Key? key,
required VoidCallback? onPressed,
Widget? prefix,
Widget? trail,
bool uppercase = true,
bool busy = false,
Color? busyColor,
Duration? loadingDebounce,
Color? color,
double? height,
double? hegiht,
double minWidth = 74,
bool withInk = true,
bool disabled = false,
ButtonStyle? style,
}) {
return LinkButton(
key: key,
onPressed: onPressed,
disabled: disabled,
busy: busy,
busyColor: busyColor,
loadingDebounce: loadingDebounce,
color: color,
height: height ?? hegiht ?? 56,
minWidth: minWidth,
withInk: withInk,
style: style,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
if (prefix != null)
Padding(
padding: const EdgeInsets.only(right: 8.0),
child: prefix,
),
Text(
uppercase ? text.toUpperCase() : text,
),
if (trail != null)
Padding(
padding: const EdgeInsets.only(left: 8.0),
child: trail,
),
],
),
);
}