materialColor property
MaterialColor
get
materialColor
The material color of the button, based on role.
Implementation
MaterialColor get materialColor {
switch (this) {
case ViamButtonRole.primary:
return Colors.grey;
case ViamButtonRole.inverse:
return Colors.grey;
case ViamButtonRole.success:
return Colors.green;
case ViamButtonRole.danger:
return Colors.red;
case ViamButtonRole.warning:
return Colors.amber;
}
}