uncheckedInputColor static method
Implementation
static Color uncheckedInputColor(ThemeData style, Set<ButtonStates> states) {
// The opacity is 0 because, when transitioning between [Colors.transparent]
// and the actual color gives a weird effect
if (style.brightness == Brightness.light) {
if (states.isDisabled) return style.disabledColor;
if (states.isPressing) return Colors.grey[70];
if (states.isHovering) return Colors.grey[40];
return Colors.grey[40].withOpacity(0);
} else {
if (states.isDisabled) return style.disabledColor;
if (states.isPressing) return Colors.grey[130];
if (states.isHovering) return Colors.grey[150];
return Colors.grey[150].withOpacity(0);
}
}