getOverlayColor function
Material state widgets overlay color function for the DarkBlue theme
Implementation
Color getOverlayColor(Set<MaterialState> states) {
const Set<MaterialState> interactiveStates = <MaterialState>{
MaterialState.pressed,
MaterialState.hovered,
MaterialState.focused,
};
if (states.any(interactiveStates.contains)) {
return Colors.red[900]!;
}
return Colors.red[900]!;
}