Commit e80c9f6
Changed files (2)
lib
l10n
model
lib/l10n/app_en.arb
@@ -300,17 +300,17 @@
"@confirmDeleteDesc": {},
"deletionConfirmed": "Entry has been deleted.",
"@deletionConfirmed": {},
- "day": "day",
+ "day": "Day",
"@day": {},
- "week": "week",
+ "week": "Week",
"@week": {},
- "month": "month",
+ "month": "Month",
"@month": {},
- "year": "year",
+ "year": "Year",
"@year": {},
- "lifetime": "lifetime",
+ "lifetime": "Lifetime",
"@lifetime": {},
- "weekOfYear": "eek {weekNum}, {year}",
+ "weekOfYear": "Week {weekNum}, {year}",
"@weekOfYear": {
"placeholders": {
"weekNum": {
@@ -320,5 +320,7 @@
"type": "int"
}
}
- }
+ },
+ "last7Days": "7 days",
+ "last30Days": "30 days"
}
lib/model/settings_store.dart
@@ -428,13 +428,15 @@ class Settings extends ChangeNotifier {
}
class TimeStep {
- static const options = [0, 4, 1, 2, 3];
+ static const options = [0, 4, 1, 2, 3, 5, 6];
static const day = 0;
static const month = 1;
static const year = 2;
static const lifetime = 3;
static const week = 4;
+ static const last7Days = 5;
+ static const last30Days = 6;
TimeStep._create();
@@ -450,6 +452,11 @@ class TimeStep {
return AppLocalizations.of(context)!.lifetime;
case week:
return AppLocalizations.of(context)!.week;
+ case last7Days:
+ return AppLocalizations.of(context)!.last7Days;
+ case last30Days:
+ return AppLocalizations.of(context)!.last30Days;
+ // TODO: implement
}
assert(false);
return '-';