From 145f7c5e034b578d1f5802adf8332c8913d6da77 Mon Sep 17 00:00:00 2001 From: DatDang Date: Fri, 18 Oct 2024 10:06:33 +0700 Subject: [PATCH] Fix focus problem when tab on Login Screen Revert "fixup! Fix focus problem when tab on Login Screen" This reverts commit c8df6ee66a8b9c55255bb1f30458e4b69664ac4f. Revert "Fix focus problem when tab on Login Screen" This reverts commit 30a14bfebe622dfd3f121f83798990e27239a6ba. Fix focus problem when tab on Login Screen --- .../login/presentation/base_login_view.dart | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/features/login/presentation/base_login_view.dart b/lib/features/login/presentation/base_login_view.dart index 9c1b75591..9032bd513 100644 --- a/lib/features/login/presentation/base_login_view.dart +++ b/lib/features/login/presentation/base_login_view.dart @@ -40,13 +40,16 @@ abstract class BaseLoginView extends GetWidget { return AutofillGroup( child: Padding( padding: const EdgeInsetsDirectional.symmetric(horizontal: 24), - child: Column( - children: [ - buildUserNameInput(context), - const SizedBox(height: 24), - buildPasswordInput(context), - const SizedBox(height: 40), - ], + child: FocusTraversalGroup( + policy: WidgetOrderTraversalPolicy(), + child: Column( + children: [ + buildUserNameInput(context), + const SizedBox(height: 24), + buildPasswordInput(context), + const SizedBox(height: 40), + ], + ), ), ), );