checkedInputColor static method

Color checkedInputColor(
  1. ThemeData style,
  2. ButtonStates state
)

Implementation

static Color checkedInputColor(ThemeData style, ButtonStates state) {
  Color color = style.accentColor;
  if (state.isDisabled)
    return style.disabledColor;
  else if (state.isHovering)
    return color.withOpacity(0.70);
  else if (state.isPressing) return color.withOpacity(0.90);
  return color;
}