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
2025-03-17 19:12:46 +01:00
parent b868911a3f
commit 567843aec8
2 changed files with 2 additions and 2 deletions

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,
);
}

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