Skip to content

Commit

Permalink
chore: add custom class
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckUVeryX committed Jan 25, 2024
1 parent e5b2378 commit 93034df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/modules/schedule/models/levels.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ enum Level {
warriorFitHiit,
mma,
wrestling,
outdoorClass;
outdoorClass,
customClass;
}

extension LevelX on Level {
Expand All @@ -60,6 +61,7 @@ extension LevelX on Level {

Color get color {
return switch (this) {
Level.customClass => Colors.white,
Level.mtLevel1 => Colors.grey,
Level.mtLevel2 || Level.mtSparring || Level.mtClinching => Colors.red,
Level.mtLevel3 || Level.outdoorClass => Colors.lime,
Expand Down

0 comments on commit 93034df

Please sign in to comment.