mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +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:
@@ -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