wt1.1b exercise description, bug fixing + custom exercise fix
This commit is contained in:
@@ -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'];
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user