CupertinoTextButton constructor

const CupertinoTextButton({
  1. Key? key,
  2. required 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 = kMinInteractiveDimensionCupertino,
  13. double? pressedOpacity = 0.4,
  14. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8.0)),
  15. Widget? child,
})

Creates a CupertinoTextButton.

The onPressed parameter must not be null.

Implementation

const CupertinoTextButton({
  super.key,
  required 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 = kMinInteractiveDimensionCupertino,
  this.pressedOpacity = 0.4,
  this.borderRadius = const BorderRadius.all(Radius.circular(8.0)),
  this.child,
});