Auto focus on the relevant field

This commit is contained in:
Vishnu 2021-06-26 16:31:32 +05:30
parent 1547c5499f
commit b5c0ff07b0

View file

@ -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)),