MaterialTextButton constructor
const
MaterialTextButton({
- Key? key,
- VoidCallback? onPressed,
- Color? color,
- TextStyle? textStyle,
- double? fontSize,
- FontWeight? fontWeight,
- EdgeInsetsGeometry? padding,
- Color? disabledColor,
- FocusNode? focusNode,
- bool autofocus = false,
- AlignmentGeometry alignment = Alignment.center,
- double? minSize,
- double? pressedOpacity,
- BorderRadius? borderRadius,
- Widget? child,
Creates a MaterialTextButton.
Implementation
const MaterialTextButton({
super.key,
this.onPressed,
this.color,
this.textStyle,
this.fontSize,
this.fontWeight,
this.padding,
this.disabledColor,
this.focusNode,
this.autofocus = false,
this.alignment = Alignment.center,
this.minSize,
this.pressedOpacity,
this.borderRadius,
this.child,
});