text static method
dynamic
text(})
Implementation
static text(
String text, {
required void Function() onPressed,
Widget? prefix,
Widget? trail,
bool uppercase = true,
bool busy = false,
Color? busyColor,
Duration? loadingDebounce,
Color? color,
double hegiht = 56,
double minWidth = 74,
bool withInk = true,
bool disabled = false,
Key? key,
}) {
return LinkButton(
onPressed: onPressed,
disabled: disabled,
busy: busy,
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,
),
],
),
busyColor: busyColor,
loadingDebounce: loadingDebounce,
color: color,
height: hegiht,
minWidth: minWidth,
withInk: withInk,
key: key,
);
}