CupertinoButtonModifier.filled constructor
const
CupertinoButtonModifier.filled({
- Key? key,
- Widget? child,
- EdgeInsetsGeometry? padding,
- Color disabledColor = CupertinoColors.quaternarySystemFill,
- double? minSize = kMinInteractiveDimensionCupertino,
- double? pressedOpacity = 0.4,
- BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8.0)),
- AlignmentGeometry alignment = Alignment.center,
- required VoidCallback? onPressed,
Creates an iOS-style button with a filled background.
The background color is derived from the CupertinoTheme's primaryColor
.
To specify a custom background color, use the color argument of the default constructor.
Implementation
const CupertinoButtonModifier.filled({
super.key,
super.child,
this.padding,
this.disabledColor = CupertinoColors.quaternarySystemFill,
this.minSize = kMinInteractiveDimensionCupertino,
this.pressedOpacity = 0.4,
this.borderRadius = const BorderRadius.all(Radius.circular(8.0)),
this.alignment = Alignment.center,
required this.onPressed,
}) : color = null,
_filled = true;