WT1.1.22+5 matic events

This commit is contained in:
bossanyit
2021-09-05 22:11:45 +02:00
parent e34add8185
commit 4e9afbd4b3
12 changed files with 67 additions and 49 deletions
-40
View File
@@ -325,46 +325,6 @@ class _MenuPageWidgetState extends State<MenuPageWidget> with Trans, Logging {
}
},
),
/* Cache().myTrainingPlan != null
? GestureDetector(
onTap: () => showDialog(
context: context,
builder: (BuildContext context) {
return DialogCommon(
title: t("You have an active Training Plan"),
descriptions: Cache().myTrainingPlan!.name != null ? Cache().myTrainingPlan!.name! : "",
description2: t("Press OK to continue"),
text: "OK",
onTap: () {
Navigator.of(context).pop();
if (Cache().myTrainingPlan != null) {
final TrainingPlanBloc bloc = BlocProvider.of<TrainingPlanBloc>(context);
bloc.setMyPlan(Cache().myTrainingPlan);
Navigator.of(context).popAndPushNamed("myTrainingPlanExecute");
}
},
onCancel: () => {
Navigator.of(context).pop(),
},
);
}),
child: AnimatedBuilder(
animation: animation,
builder: (context, snapshot) {
return Center(
child: Container(
width: animation.value,
height: animation.value,
child: Image.asset("asset/image/continue.png"),
),
);
}))
: Offstage(), */
/* activeExercisePlan
? SizedBox(
width: 10,
)
: Offstage(), */
Cache().activeExercisePlan != null
? GestureDetector(
onTap: () => showDialog(