WT 1.1.20+5 training plan fixes
This commit is contained in:
@@ -87,8 +87,8 @@ class TrainingEvaluationPage extends StatelessWidget with Trans {
|
||||
SliverAppBar(
|
||||
pinned: true,
|
||||
backgroundColor: Colors.transparent,
|
||||
expandedHeight: 100.0,
|
||||
collapsedHeight: 100,
|
||||
expandedHeight: 130.0,
|
||||
collapsedHeight: 130,
|
||||
toolbarHeight: 40,
|
||||
automaticallyImplyLeading: false,
|
||||
flexibleSpace: FlexibleSpaceBar(
|
||||
@@ -302,6 +302,7 @@ class ExerciseTile extends StatelessWidget with Trans {
|
||||
setContext(context);
|
||||
bool hasWeight = exercise.type.equalsTo(TrainingEvaluationExerciseType.weightBased);
|
||||
bool skipped = exercise.state.equalsTo(ExercisePlanDetailState.skipped);
|
||||
bool extra = exercise.state.equalsTo(ExercisePlanDetailState.extra);
|
||||
|
||||
return Container(
|
||||
color: Colors.transparent,
|
||||
@@ -367,15 +368,18 @@ class ExerciseTile extends StatelessWidget with Trans {
|
||||
TextSpan(text: "\n"),
|
||||
hasWeight
|
||||
? skipped
|
||||
? TextSpan(
|
||||
text: t("skipped") + "!",
|
||||
style: GoogleFonts.inter(fontSize: 12, color: Colors.grey[400], fontWeight: FontWeight.bold))
|
||||
? extra
|
||||
? TextSpan(
|
||||
text: "-", style: GoogleFonts.inter(fontSize: 12, color: Colors.grey[400], fontWeight: FontWeight.bold))
|
||||
: TextSpan(
|
||||
text: t("skipped") + "!",
|
||||
style: GoogleFonts.inter(fontSize: 12, color: Colors.grey[400], fontWeight: FontWeight.bold))
|
||||
: TextSpan(
|
||||
text: t("One Rep Max") + ": ",
|
||||
style: GoogleFonts.inter(fontSize: 12, color: Colors.yellow[400], fontWeight: FontWeight.bold))
|
||||
: TextSpan(),
|
||||
hasWeight
|
||||
? skipped
|
||||
? skipped || extra
|
||||
? TextSpan()
|
||||
: TextSpan(
|
||||
text: exercise.oneRepMax!.toStringAsFixed(0) +
|
||||
@@ -390,14 +394,14 @@ class ExerciseTile extends StatelessWidget with Trans {
|
||||
: TextSpan(),
|
||||
TextSpan(text: "\n"),
|
||||
hasWeight
|
||||
? skipped
|
||||
? skipped || extra
|
||||
? TextSpan()
|
||||
: TextSpan(
|
||||
text: t("Total Lift") + ": ",
|
||||
style: GoogleFonts.inter(fontSize: 12, color: Colors.yellow[400], fontWeight: FontWeight.bold))
|
||||
: TextSpan(),
|
||||
hasWeight
|
||||
? skipped
|
||||
? skipped || extra
|
||||
? TextSpan()
|
||||
: TextSpan(
|
||||
text: exercise.totalLift!.toStringAsFixed(0) +
|
||||
@@ -409,7 +413,7 @@ class ExerciseTile extends StatelessWidget with Trans {
|
||||
t("kg") +
|
||||
")",
|
||||
style: GoogleFonts.inter(fontSize: 12, color: Colors.white, fontWeight: FontWeight.bold))
|
||||
: skipped
|
||||
: skipped || extra
|
||||
? TextSpan()
|
||||
: TextSpan(
|
||||
text: exercise.repeats!.toStringAsFixed(0) +
|
||||
@@ -422,16 +426,16 @@ class ExerciseTile extends StatelessWidget with Trans {
|
||||
")",
|
||||
style: GoogleFonts.inter(fontSize: 12, color: Colors.white, fontWeight: FontWeight.bold)),
|
||||
TextSpan(text: "\n"),
|
||||
skipped
|
||||
skipped || extra
|
||||
? TextSpan()
|
||||
: TextSpan(
|
||||
text: t("Trend") + ": ",
|
||||
style: GoogleFonts.inter(fontSize: 12, color: Colors.yellow[400], fontWeight: FontWeight.bold)),
|
||||
skipped
|
||||
skipped || extra
|
||||
? TextSpan()
|
||||
: TextSpan(
|
||||
text: exercise.trendText,
|
||||
style: GoogleFonts.inter(fontSize: 12, color: Colors.white, fontWeight: FontWeight.bold)),
|
||||
text: t(exercise.trendText),
|
||||
style: GoogleFonts.inter(fontSize: 12, color: exercise.trendColor, fontWeight: FontWeight.bold)),
|
||||
]),
|
||||
)),
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user