OutlinedButton.text constructor

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

Implementation

factory OutlinedButton.text(
  String text, {
  Key? key,
  Color? color,
  double? minWidth,
  double? height,
  bool uppercase = true,
  bool busy = false,
  Color? busyColor,
  required VoidCallback? onPressed,
  Duration? loadingDebounce,
  BorderRadius? borderRadius,
  bool? guessTextColor,
  EdgeInsets? padding,
  bool disabled = false,
  double? borderWidth,
  ButtonStyle? style,
}) {
  return OutlinedButton(
    key: key,
    color: color,
    minWidth: minWidth,
    height: height,
    onPressed: onPressed,
    busy: busy,
    busyColor: busyColor,
    loadingDebounce: loadingDebounce,
    borderRadius: borderRadius,
    guessTextColor: guessTextColor,
    padding: padding,
    disabled: disabled,
    borderWidth: borderWidth,
    style: style,
    child: Text(uppercase ? text.toUpperCase() : text),
  );
}