getButtonBackgroundColor function

Color getButtonBackgroundColor(
  1. Set<MaterialState> states
)

Implementation

Color getButtonBackgroundColor(Set<MaterialState> states) {
  const Set<MaterialState> interactiveStates = <MaterialState>{
    MaterialState.disabled,
  };
  if (states.any(interactiveStates.contains)) {
    return const Color(0xFFB9B9B9);
  }
  return const Color(0xFF8bdf67);
}