MButton constructor

const MButton({
  1. Key? key,
  2. void onTap()?,
  3. String? text,
  4. double? width,
  5. double? height,
  6. double? maxWidth,
  7. double? maxHeight,
  8. TextStyle? textStyle,
  9. Color? textColor,
  10. FontWeight? fontWeight,
  11. double? fontSize,
  12. EdgeInsetsGeometry? padding,
  13. BorderRadiusGeometry? borderRadius,
  14. Color? backgroundColor,
  15. Gradient? backgroundGradient,
  16. Widget? child,
  17. List<BoxShadow>? boxShadow,
  18. Border? border,
  19. Color? disabledBackgroundColor,
  20. TextAlign? textAlign,
  21. bool canNotClick = false,
  22. EdgeInsetsGeometry? margin,
})

Implementation

const MButton({
  super.key,
  this.onTap,
  this.text,
  this.width,
  this.height,
  this.maxWidth,
  this.maxHeight,
  this.textStyle,
  this.textColor,
  this.fontWeight,
  this.fontSize,
  this.padding,
  this.borderRadius,
  this.backgroundColor,
  this.backgroundGradient,
  this.child,
  this.boxShadow,
  this.border,
  this.disabledBackgroundColor,
  this.textAlign,
  this.canNotClick = false,
  this.margin,
});