Button constructor
Button({})
Implementation
Button({
super.key,
required this.label,
this.onClick,
this.mode = LiWETheme.info,
double? borderRadius,
double? border,
Color? borderColor,
Color? backgroundColor,
Color? color,
this.fontSize,
}) {
Map<String, Color?> cols = theme.getVariant(mode);
this.backgroundColor = backgroundColor ?? cols["backgroundColor"];
this.color = color ?? cols["color"];
this.borderRadius = borderRadius ?? theme.borderRadius.value;
this.border = 1.0;
this.borderColor = borderColor ?? cols["borderColor"];
}