CxButton constructor
const
CxButton({
- Key? key,
- String? text,
- IconData? icon,
- CxButtonType? type = CxButtonType.solid,
- Color? color = const Color.fromARGB(255, 50, 73, 245),
- Color? textColor,
- Color? iconColor,
- double? radius = 20,
- EdgeInsetsGeometry? padding = const EdgeInsets.all(8),
- double? iconSize,
- double? textSize,
- bool shadow = true,
- double? width,
- double? height,
- bool disabled = false,
- void onTap()?,
Implementation
const CxButton({
super.key,
this.text,
this.icon,
this.type = CxButtonType.solid,
this.color = const Color.fromARGB(255, 50, 73, 245),
this.textColor,
this.iconColor,
this.radius = 20,
this.padding = const EdgeInsets.all(8),
this.iconSize,
this.textSize,
this.shadow = true,
this.width,
this.height,
this.disabled = false,
this.onTap,
});