cupertinoBtn method

CupertinoButton cupertinoBtn({
  1. Key? key,
  2. EdgeInsetsGeometry? padding,
  3. Color? color,
  4. Color disabledColor = CupertinoColors.quaternarySystemFill,
  5. double minSize = kMinInteractiveDimensionCupertino,
  6. double? pressedOpacity = 0.4,
  7. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8.0)),
  8. Alignment alignment = Alignment.center,
  9. VoidCallback? onPressed,
})

Implementation

CupertinoButton cupertinoBtn({
  Key? key,
  EdgeInsetsGeometry? padding,
  Color? color,
  Color disabledColor = CupertinoColors.quaternarySystemFill,
  double minSize = kMinInteractiveDimensionCupertino,
  double? pressedOpacity = 0.4,
  BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8.0)),
  Alignment alignment = Alignment.center,
  VoidCallback? onPressed,
}) =>
    CupertinoButton(
        key: key,
        onPressed: onPressed,
        padding: padding,
        color: color,
        disabledColor: disabledColor,
        minSize: minSize,
        pressedOpacity: pressedOpacity,
        borderRadius: borderRadius,
        alignment: alignment,
        child: this);