ComButton constructor

const ComButton({
  1. Key? key,
  2. required Widget child,
  3. Gradient? gradient,
  4. VoidCallback? onPressed,
  5. ButtonStyle? style,
  6. bool plain = false,
  7. bool disabled = false,
  8. BorderRadius? borderRadius,
  9. @Deprecated('Use borderRadius instead. This will be removed in a future version.') double? radius,
  10. Color? color,
  11. EdgeInsets? padding,
  12. bool loading = false,
  13. Color? shadowColor,
  14. double elevation = 0,
  15. double? width,
  16. double? height,
})

Implementation

const ComButton({
  super.key,
  required this.child,
  this.gradient,
  this.onPressed,
  this.style,
  this.plain = false,
  this.disabled = false,
  this.borderRadius,
  @Deprecated(
      'Use borderRadius instead. This will be removed in a future version.')
  this.radius,
  this.color,
  this.padding,
  this.loading = false,
  this.shadowColor,
  this.elevation = 0,
  this.width,
  this.height,
});