OutlinedButton.large constructor

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

Implementation

factory OutlinedButton.large({
  Key? key,
  Widget? child,
  String? text,
  Color? color,
  bool uppercase = true,
  bool busy = false,
  required VoidCallback? onPressed,
  Color? busyColor,
  Duration? loadingDebounce,
  BorderRadius? borderRadius,
  bool? guessTextColor,
  EdgeInsets? padding,
  bool disabled = false,
  double? borderWidth,
  ButtonStyle? style,
}) {
  assert(child != null || text != null,
      "You must define either a child widget or a text");
  return OutlinedButton(
    key: key,
    color: color,
    minWidth: 340,
    height: 48,
    onPressed: onPressed,
    busy: busy,
    busyColor: busyColor,
    loadingDebounce: loadingDebounce,
    borderRadius: borderRadius,
    guessTextColor: guessTextColor,
    padding: padding,
    disabled: disabled,
    borderWidth: borderWidth,
    style: style,
    child:
        child ?? Text(uppercase ? (text ?? '').toUpperCase() : (text ?? '')),
  );
}