From bd727c949bf87c26f1e0091527e44d3ca39dbec0 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Sun, 16 Nov 2025 15:50:23 +0100 Subject: [PATCH] When adding exercises only one is added --- .../routines/gym_mode/workout_menu.dart | 31 +++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/lib/widgets/routines/gym_mode/workout_menu.dart b/lib/widgets/routines/gym_mode/workout_menu.dart index 0b4eeb96..dd64a6e3 100644 --- a/lib/widgets/routines/gym_mode/workout_menu.dart +++ b/lib/widgets/routines/gym_mode/workout_menu.dart @@ -376,25 +376,18 @@ class ExerciseAddWidget extends ConsumerWidget { padding: const EdgeInsets.all(5), child: Column( children: [ - ...page.exercises.map((e) { - return Column( - mainAxisSize: MainAxisSize.max, - children: [ - ExerciseAutocompleter( - onExerciseSelected: (exercise) { - gymProvider.addExerciseAfterPage( - page.uuid, - newExercise: exercise, - ); - onDone?.call(); - _logger.fine('Added exercise ${exercise.id} after page $pageUUID'); - }, - ), - const Icon(Icons.arrow_downward), - const SizedBox(height: 10), - ], - ); - }), + ExerciseAutocompleter( + onExerciseSelected: (exercise) { + gymProvider.addExerciseAfterPage( + page.uuid, + newExercise: exercise, + ); + onDone?.call(); + _logger.fine('Added exercise ${exercise.id} after page $pageUUID'); + }, + ), + const Icon(Icons.arrow_downward), + const SizedBox(height: 10), ], ), ),