getTextColor static method

Color getTextColor(
  1. ButtonType type,
  2. ButtonState state
)

Implementation

static Color getTextColor(ButtonType type, ButtonState state) {
  if (state == ButtonState.disabled) {
    return Colors.grey.shade600;
  }
  return type == ButtonType.primary ? Colors.white : Colors.black;
}