mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-29 01:18:35 +01:00
fix(routines): dismiss keyboard after saving a set
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user