Skip to content

Offline gym log for Android. No account, no ads, no internet.

Long press an exercise in a routine to see how to do it, and allow timed sets up to an hour

InlitXc0c35cdb7d03
diff --git a/lib/screens/routine_edit_screen.dart b/lib/screens/routine_edit_screen.dart
index 73c5227..b20ffb0 100644
--- a/lib/screens/routine_edit_screen.dart
+++ b/lib/screens/routine_edit_screen.dart
@@ -622,6 +622,7 @@ class _RoutineEditScreenState extends State<RoutineEditScreen> {
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => _openPlan(ex),
+ onLongPress: () => showExercisePreview(context, ex),
child: SizedBox(width: 44, child: ExerciseMedia(ex: ex, height: 44, radius: 10)),
),
const SizedBox(width: 12),
@@ -635,6 +636,7 @@ class _RoutineEditScreenState extends State<RoutineEditScreen> {
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => _openPlan(ex),
+ onLongPress: () => showExercisePreview(context, ex),
child: Row(children: [
Flexible(
child: Text(exerciseName(ex),
@@ -1199,7 +1201,7 @@ class _RoutineEditScreenState extends State<RoutineEditScreen> {
() => cardio
? ask(t.timeMinutesTitle, ((p.sec ?? 1200) / 60).roundToDouble(), 300, 1, 5, 'min',
(v) => edit(i, p.copyWith(sec: (v * 60).round())))
- : ask(t.timeSecondsTitle, (p.sec ?? 30).toDouble(), 900, 5, 6, '',
+ : ask(t.timeSecondsTitle, (p.sec ?? 30).toDouble(), 3600, 5, 6, '',
(v) => edit(i, p.copyWith(sec: v.round())),
format: (v) => clockLabel(v.round())),
);