MButton constructor
const
MButton({
- Key? key,
- void onTap()?,
- String? text,
- double? width,
- double? height,
- double? maxWidth,
- double? maxHeight,
- TextStyle? textStyle,
- Color? textColor,
- FontWeight? fontWeight,
- double? fontSize,
- EdgeInsetsGeometry? padding,
- BorderRadiusGeometry? borderRadius,
- Color? backgroundColor,
- Gradient? backgroundGradient,
- Widget? child,
- List<
BoxShadow> ? boxShadow, - Border? border,
- Color? disabledBackgroundColor,
- TextAlign? textAlign,
- bool canNotClick = false,
- 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,
});