From b5c0ff07b0679128fe4f7d5a51d10baf4bb472fc Mon Sep 17 00:00:00 2001 From: Vishnu Date: Sat, 26 Jun 2021 16:31:32 +0530 Subject: [PATCH] Auto focus on the relevant field --- lib/ui/two_factor_authentication_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/two_factor_authentication_page.dart b/lib/ui/two_factor_authentication_page.dart index 62ffe09a8..7ef6af8f8 100644 --- a/lib/ui/two_factor_authentication_page.dart +++ b/lib/ui/two_factor_authentication_page.dart @@ -4,7 +4,6 @@ import 'package:logging/logging.dart'; import 'package:photos/services/user_service.dart'; import 'package:photos/ui/common_elements.dart'; import 'package:photos/ui/two_factor_recovery_page.dart'; -import 'package:photos/utils/dialog_util.dart'; import 'package:pinput/pin_put/pin_put.dart'; class TwoFactorAuthenticationPage extends StatefulWidget { @@ -82,6 +81,7 @@ class _TwoFactorAuthenticationPageState border: InputBorder.none, counterText: '', ), + autofocus: true, ), ), Padding(padding: EdgeInsets.all(24)),