From 330ad382a4706cc6fd9e901920d5d92e355f06d9 Mon Sep 17 00:00:00 2001 From: Yehonatan Avrahimi <48332126+yontank@users.noreply.github.com> Date: Wed, 28 Jan 2026 23:40:17 +0200 Subject: [PATCH] BUGFIX: unfocus while typing in gym_mode form --- lib/widgets/routines/gym_mode/log_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/routines/gym_mode/log_page.dart b/lib/widgets/routines/gym_mode/log_page.dart index 49865e7e..a9b131ef 100644 --- a/lib/widgets/routines/gym_mode/log_page.dart +++ b/lib/widgets/routines/gym_mode/log_page.dart @@ -251,7 +251,7 @@ class LogsRepsWidget extends ConsumerWidget { child: TextFormField( decoration: InputDecoration(labelText: i18n.repetitions), enabled: true, - key: ValueKey('reps-field-$repText'), + key: const ValueKey('reps-field'), initialValue: repText, keyboardType: textInputTypeDecimal, onChanged: (value) { @@ -332,7 +332,7 @@ class LogsWeightWidget extends ConsumerWidget { // Text field Expanded( child: TextFormField( - key: ValueKey('weight-field-$weightText'), + key: const ValueKey('weight-field'), decoration: InputDecoration(labelText: i18n.weight), initialValue: weightText, keyboardType: textInputTypeDecimal,