WButton constructor
const
WButton({
- required GestureTapCallback onTap,
- Color? buttonColor,
- double? width,
- double? borderRadius,
- double? height,
- String text = '',
- Color? color,
- Color? textColor,
- TextStyle? textStyle,
- EdgeInsets? margin,
- EdgeInsets? padding,
- BoxBorder? border,
- bool loading = false,
- bool disabled = false,
- Color disabledColor = Colors.grey,
- Key? key,
- Widget? child,
Implementation
const WButton({
required this.onTap,
this.buttonColor,
this.width,
this.borderRadius,
this.height,
this.text = '',
this.color,
this.textColor,
this.textStyle,
this.margin,
this.padding,
this.border,
this.loading = false,
this.disabled = false,
this.disabledColor = Colors.grey,
super.key,
this.child,
});