wt1.1b exercise description, bug fixing + custom exercise fix

This commit is contained in:
Bossanyi Tibor
2020-08-20 08:38:16 +02:00
parent 4d9f2e5152
commit e938f1be8c
20 changed files with 355 additions and 229 deletions
+2
View File
@@ -10,6 +10,7 @@ class ExerciseType {
String unitQuantity;
String unitQuantityUnit;
bool active;
bool base;
String imageUrl;
String nameTranslation;
String descriptionTranslation;
@@ -25,6 +26,7 @@ class ExerciseType {
this.unitQuantity = json['unitQuantity'];
this.unitQuantityUnit = json['unitQuantityUnit'];
this.active = json['active'];
this.base = json['base'];
this.imageUrl = json['images'][0]['url'];
this.nameTranslation = json['translations'][0]['name'];
this.descriptionTranslation = json['translations'][0]['description'];
+2 -1
View File
@@ -12,7 +12,8 @@ class WorkoutTree {
bool child;
int exerciseTypeId;
ExerciseType exerciseType;
bool base;
WorkoutTree(this.id, this.parent, this.name, this.imageName, this.color, this.fontSize, this.child, this.exerciseTypeId, this.exerciseType);
WorkoutTree(this.id, this.parent, this.name, this.imageName, this.color, this.fontSize, this.child, this.exerciseTypeId, this.exerciseType, this.base);
}