WT 1.1.20(4) Training plan improvements
This commit is contained in:
@@ -65,6 +65,7 @@ enum SharePrefsChange {
|
||||
*/
|
||||
|
||||
enum ActivityDone {
|
||||
tutorialExecuteFirstTest,
|
||||
tutorialBasic,
|
||||
tutorialBasicChestPress,
|
||||
tutorialBasicLegPress,
|
||||
|
||||
@@ -3,7 +3,7 @@ import 'dart:convert';
|
||||
import 'package:aitrainer_app/model/exercise.dart';
|
||||
import 'package:aitrainer_app/model/exercise_type.dart';
|
||||
|
||||
enum ExercisePlanDetailState { start, inProgress, skipped, finished }
|
||||
enum ExercisePlanDetailState { start, inProgress, skipped, finished, extra }
|
||||
|
||||
extension ExericisePlanDetailStateExt on ExercisePlanDetailState {
|
||||
bool equalsTo(ExercisePlanDetailState state) => this.toString() == state.toString();
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
import 'package:aitrainer_app/model/exercise_plan_detail.dart';
|
||||
import 'package:aitrainer_app/model/exercise_type.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
enum TrainingEvaluationExerciseType { weightBased, repeatBased, secondBased }
|
||||
|
||||
extension TrainingEvaluationExerciseTypeExt on TrainingEvaluationExerciseType {
|
||||
String toStr() => this.toString().split(".").last;
|
||||
bool equalsTo(TrainingEvaluationExerciseType value) => this.toString() == value.toString();
|
||||
bool equalsStringTo(String value) => this.toString() == value;
|
||||
}
|
||||
|
||||
class TrainingEvaluationExercise {
|
||||
late int exerciseTypeId;
|
||||
late String name;
|
||||
late TrainingEvaluationExerciseType type;
|
||||
late ExerciseType exerciseType;
|
||||
|
||||
int? repeats;
|
||||
int? maxRepeats;
|
||||
|
||||
int? totalLift;
|
||||
int? maxTotalLift;
|
||||
|
||||
double? oneRepMax;
|
||||
double? max1RM;
|
||||
|
||||
late double? trend;
|
||||
late String trendText;
|
||||
late Color trendColor;
|
||||
|
||||
late ExercisePlanDetailState state;
|
||||
}
|
||||
Reference in New Issue
Block a user