getHighlightColor method
Implementation
Color getHighlightColor(BuildContext context) {
if(smooth == true) {
switch (theme) {
case WuiButtonTheme.danger: return Color(0xFFDB2323).withOpacity(.12);
case WuiButtonTheme.primary: return Theme.of(context).primaryColor.withOpacity(.12);
default: return Colors.black.withOpacity(.08);
}
}
switch (theme) {
case WuiButtonTheme.danger:
case WuiButtonTheme.primary: return Colors.white.withOpacity(.16);
default: return Colors.black.withOpacity(.08);
}
}