WT 1.1.20+5 training plan fixes
This commit is contained in:
@@ -58,13 +58,13 @@ class TrainingEvaluationBloc extends Bloc<TrainingEvaluationEvent, TrainingEvalu
|
||||
}
|
||||
|
||||
trainingPlanBloc.getMyPlan()!.days[day]!.forEach((element) {
|
||||
if (!element.state.equalsTo(ExercisePlanDetailState.extra)) {
|
||||
if (!findExerciseInEvaluationList(element.exerciseTypeId!)) {
|
||||
addEvaluationExercise(element);
|
||||
} else {
|
||||
//editEvaluationExercise(element);
|
||||
}
|
||||
//if (!element.state.equalsTo(ExercisePlanDetailState.extra)) {
|
||||
if (!findExerciseInEvaluationList(element.exerciseTypeId!)) {
|
||||
addEvaluationExercise(element);
|
||||
} else {
|
||||
//editEvaluationExercise(element);
|
||||
}
|
||||
//}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ class TrainingEvaluationBloc extends Bloc<TrainingEvaluationEvent, TrainingEvalu
|
||||
} else if (rate < 0.90) {
|
||||
return Colors.red[900]!;
|
||||
} else if (rate < 0.95) {
|
||||
return Colors.green[400]!;
|
||||
return Colors.red[400]!;
|
||||
} else {
|
||||
return Colors.white;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user