getHealthColorsForMonth static method

Iterable<Color> getHealthColorsForMonth(
  1. int month
)

Return a list of colors for the specified month based on health awareness campaigns

Implementation

static Iterable<Color> getHealthColorsForMonth(int month) {
  month = month.clampRotate(1, 12);
  switch (month) {
    case 1: // Janeiro
      return [Colors.white, Colors.purple]; // Saúde mental e hanseníase
    case 2: // Fevereiro
      return [Colors.purple, Colors.orange]; // Lúpus, Alzheimer, fibromialgia e leucemia
    case 3: // Março
      return [Colors.red, Colors.blue]; // Câncer renal e câncer colorretal
    case 4: // Abril
      return [Colors.blue, Colors.green]; // Autismo e segurança no trabalho
    case 5: // Maio
      return [Colors.red, Colors.yellow]; // Hepatite e câncer de bexiga
    case 6: // Junho
      return [Colors.red, Colors.orange]; // Anemia e câncer de pele
    case 7: // Julho
      return [Colors.yellow, Colors.green]; // Hepatite e câncer de bexiga
    case 8: // Agosto
      return [Colors.green, Colors.lime]; // Aleitamento materno e linfoma
    case 9: // Setembro
      return [Colors.yellow, Colors.green]; // Prevenção ao suicídio e câncer de intestino
    case 10: // Outubro
      return [Colors.pink]; // Câncer de mama
    case 11: // Novembro
      return [Colors.blue]; // Câncer de próstata
    case 12: // Dezembro
      return [Colors.red]; // Prevenção à AIDS
    default:
      return [];
  }
}