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