MaterialTextButton constructor

const MaterialTextButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. Color? color,
  4. TextStyle? textStyle,
  5. double? fontSize,
  6. FontWeight? fontWeight,
  7. EdgeInsetsGeometry? padding,
  8. Color? disabledColor,
  9. FocusNode? focusNode,
  10. bool autofocus = false,
  11. AlignmentGeometry alignment = Alignment.center,
  12. double? minSize,
  13. double? pressedOpacity,
  14. BorderRadius? borderRadius,
  15. 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,
});