const
Widget.materialButton(- {Key? key,
- required Callback? onPressed,
- Callback? onLongPress,
- MouseCursor? mouseCursor,
- Color? textColor,
- Color? disabledTextColor,
- Color? color,
- Color? disabledColor,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- Brightness? colorBrightness,
- double? elevation,
- double? focusElevation,
- double? hoverElevation,
- double? highlightElevation,
- double? disabledElevation,
- EdgeInsets? padding,
- VisualDensity? visualDensity,
- ShapeBorder? shape,
- @Default(Clip.none) Clip clipBehavior,
- @Default(false) bool autofocus,
- MaterialTapTargetSize? materialTapTargetSize,
- Duration? animationDuration,
- double? minWidth,
- double? height,
- @Default(true) bool enableFeedback,
- Widget? child}
)
Implementation
const factory Widget.materialButton({
Key? key,
required Callback? onPressed,
Callback? onLongPress,
MouseCursor? mouseCursor,
Color? textColor,
Color? disabledTextColor,
Color? color,
Color? disabledColor,
Color? focusColor,
Color? hoverColor,
Color? highlightColor,
Color? splashColor,
Brightness? colorBrightness,
double? elevation,
double? focusElevation,
double? hoverElevation,
double? highlightElevation,
double? disabledElevation,
EdgeInsets? padding,
VisualDensity? visualDensity,
ShapeBorder? shape,
@Default(Clip.none) Clip clipBehavior,
@Default(false) bool autofocus,
MaterialTapTargetSize? materialTapTargetSize,
Duration? animationDuration,
double? minWidth,
double? height,
@Default(true) bool enableFeedback,
Widget? child,
}) = MaterialButton;