mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-06 15:54:31 +01:00
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:
1 parent
b868911a3f
commit
567843aec8
2 files changed
+2
-2
No files matched your search
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user