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