- Flutter frontend with Provider state management - FastAPI backend with SQLAlchemy ORM - Internationalization support (EN/DE) - Clean Architecture folder structure - GoRouter for navigation - GetIt for dependency injection
24 lines
427 B
Dart
24 lines
427 B
Dart
enum Priority {
|
|
low,
|
|
medium,
|
|
high;
|
|
|
|
String get displayName {
|
|
switch (this) {
|
|
case Priority.low:
|
|
return 'Low';
|
|
case Priority.medium:
|
|
return 'Medium';
|
|
case Priority.high:
|
|
return 'High';
|
|
}
|
|
}
|
|
|
|
static Priority fromString(String value) {
|
|
return Priority.values.firstWhere(
|
|
(e) => e.name == value.toLowerCase(),
|
|
orElse: () => Priority.medium,
|
|
);
|
|
}
|
|
}
|