WT 1.1.25+3 flutter 2.8, activate training plan
This commit is contained in:
@@ -38,7 +38,7 @@ import 'package:package_info/package_info.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:aitrainer_app/model/exercise_type.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:smartlook/smartlook.dart';
|
||||
import 'package:flutter_smartlook/flutter_smartlook.dart';
|
||||
|
||||
import 'customer_exercise_device.dart';
|
||||
import 'exercise_device.dart';
|
||||
|
||||
@@ -150,5 +150,13 @@ class CustomerTrainingPlanDetails {
|
||||
this.day = from.day;
|
||||
this.dayId = from.dayId;
|
||||
this.baseOneRepMax = from.baseOneRepMax;
|
||||
if (from.exercises.length == 0) {
|
||||
this.exercises = [];
|
||||
}
|
||||
if (from.alternatives.length > 0) {
|
||||
from.alternatives.forEach((alternative) {
|
||||
this.alternatives.add(alternative);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user