text static method

dynamic text(
  1. String text, {
  2. required void onPressed(),
  3. Widget? prefix,
  4. Widget? trail,
  5. bool uppercase = true,
  6. bool busy = false,
  7. Color? busyColor,
  8. Duration? loadingDebounce,
  9. Color? color,
  10. double hegiht = 56,
  11. double minWidth = 74,
  12. bool withInk = true,
  13. bool disabled = false,
  14. Key? key,
})

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,
  );
}