Set the default value to fitInWeek to true

This is the same behaviour as in the web application is what most people
most like will be doing anyway.
This commit is contained in:
Roland Geider committed 2025-03-17 19:27:43 +01:00
1 parent b868911a3f
commit 567843aec8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ BaseConfig _$BaseConfigFromJson(Map<String, dynamic> json) {
value: stringOrIntToNum(json['value']),
operation: json['operation'] as String? ?? 'r',
step: json['step'] as String? ?? 'abs',
requirements: json['requirements'] ?? null,
requirements: json['requirements'] as Map<String, dynamic>? ?? null,
);
}
+1 -1
View File
@@ -98,7 +98,7 @@ class Routine {
created = DateTime.now();
start = DateTime.now();
end = DateTime.now().add(const Duration(days: DEFAULT_DURATION * 7));
fitInWeek = false;
fitInWeek = true;
}
// Boilerplate