solidTwo method
AzButton
solidTwo(
- dynamic color,
- dynamic colorOverlay,
- dynamic borderWidth
)
Implementation
AzButton solidTwo(color, colorOverlay, borderWidth){
if(_borderWidth != 1){
_borderWidth = borderWidth;
}
// Color color = AzUtlis().colorPrimary;
// Color colorOverlay = AzUtlis().colorPrimaryOverlay;
_backgroundColor ??= MaterialStateProperty.all(color.withOpacity(0.2));
_overlayColor ??= MaterialStateProperty.all(colorOverlay);
_side = MaterialStateProperty.all(BorderSide(
width: _borderWidth,
color: color
));
// set text property
_textColor = color;
_fontWeight = FontWeight.bold;
return this;
}