OutlinedButton.text constructor

OutlinedButton.text(
  1. String text, {
  2. Color? color,
  3. double? minWidth,
  4. double? height,
  5. bool uppercase = true,
  6. bool busy = false,
  7. Color? busyColor,
  8. required void onPressed(),
  9. Duration? loadingDebounce,
  10. BorderRadius? borderRadius,
  11. bool? guessTextColor,
  12. EdgeInsets? padding,
  13. Key? key,
  14. bool disabled = false,
})

Implementation

factory OutlinedButton.text(
  String text, {
  final Color? color,
  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,
  EdgeInsets? padding,
  Key? key,
  bool disabled = false,
}) {
  return OutlinedButton(
    color: color,
    child: GBText(uppercase ? text.toUpperCase() : text),
    minWidth: minWidth,
    height: height,
    onPressed: onPressed,
    busy: busy,
    busyColor: busyColor,
    loadingDebounce: loadingDebounce,
    borderRadius: borderRadius,
    guessTextColor: guessTextColor,
    padding: padding,
    key: key,
    disabled: disabled,
  );
}