CupertinoButtonData constructor
const
CupertinoButtonData({
- bool isEnabled = true,
- VoidCallback? onPressed,
- VoidCallback? onLongPress,
- MouseCursor? mouseCursor,
- FocusNode? focusNode,
- bool autofocus = kDefaultAutofocus,
- Widget? child,
- Key? widgetKey,
- CupertinoButtonSize sizeStyle = kDefaultSizeStyle,
- EdgeInsetsGeometry? padding,
- Color? color,
- Color? foregroundColor,
- Color? disabledColor,
- Size? minimumSize,
- double? pressedOpacity = kDefaultPressedOpacity,
- BorderRadius? borderRadius,
- AlignmentGeometry? alignment = kDefaultAlignment,
- ValueChanged<
bool> ? onFocusChange, - Color? focusColor,
Creates Cupertino-specific button configuration.
Implementation
const CupertinoButtonData({
super.isEnabled,
super.onPressed,
super.onLongPress,
super.mouseCursor,
super.focusNode,
super.autofocus,
super.child,
super.widgetKey,
this.sizeStyle = kDefaultSizeStyle,
this.padding,
this.color,
this.foregroundColor,
this.disabledColor,
this.minimumSize,
this.pressedOpacity = kDefaultPressedOpacity,
this.borderRadius,
this.alignment = kDefaultAlignment,
this.onFocusChange,
this.focusColor,
});