fix(routines): dismiss keyboard after saving a set

This commit is contained in:
Simon Peter Rothgang
2026-11-26 16:44:08 +01:00
parent cd46b85a84
commit bccd7e47e7
2 changed files with 39 additions and 0 deletions

View File

@@ -398,11 +398,14 @@ class _LogFormWidgetState extends ConsumerState<LogFormWidget> {
// error handler; the success path below is then skipped. A page
// logged before updates its row, and the PageView follows the
// page change from the gym state.
final inputFocus = FocusManager.instance.primaryFocus;
await ref.read(gymStateProvider.notifier).logCurrentSet();
if (!context.mounted) {
return;
}
inputFocus?.unfocus();
showSnackbar(
context,
i18n.successfullySaved,