OutlinedButton constructor
OutlinedButton({
- Key? key,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- Clip clipBehavior = Clip.none,
- WidgetStatesController? statesController,
- bool busy = false,
- Color? busyColor,
- Duration? loadingDebounce,
- bool disabled = false,
- Color? color,
- BorderRadius? borderRadius,
- EdgeInsetsGeometry? padding,
- double? minWidth,
- double? height,
- double? borderWidth,
- bool? guessTextColor,
- Widget? child,
Implementation
OutlinedButton({
super.key,
required VoidCallback? onPressed,
VoidCallback? onLongPress,
ValueChanged<bool>? onHover,
ValueChanged<bool>? onFocusChange,
ButtonStyle? style,
FocusNode? focusNode,
bool autofocus = false,
Clip clipBehavior = Clip.none,
WidgetStatesController? statesController,
this.busy = false,
this.busyColor,
this.loadingDebounce,
bool disabled = false,
Color? color,
BorderRadius? borderRadius,
EdgeInsetsGeometry? padding,
double? minWidth,
double? height,
double? borderWidth,
bool? guessTextColor,
Widget? child,
}) : super(
onPressed: (disabled || busy) ? null : onPressed,
onLongPress: (disabled || busy) ? null : onLongPress,
onHover: onHover,
onFocusChange: onFocusChange,
style: _resolveStyle(
style: style,
color: color,
borderRadius: borderRadius,
padding: padding,
minWidth: minWidth,
height: height,
borderWidth: borderWidth,
),
focusNode: focusNode,
autofocus: autofocus,
clipBehavior: clipBehavior,
statesController: statesController,
child: GBButtonChild(
busy: busy,
busyColor: busyColor,
loadingDebounce: loadingDebounce,
child: child ?? const SizedBox.shrink(),
),
);