always request focus for OATH and FIDO2 auth

This commit is contained in:
Adam Velebil 2024-04-16 10:00:29 +02:00
parent 82034c8be0
commit 54fd4d5aac
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10
2 changed files with 19 additions and 0 deletions

View File

@ -44,6 +44,12 @@ class _PinEntryFormState extends ConsumerState<PinEntryForm> {
bool _pinIsWrong = false;
bool _isObscure = true;
@override
void initState() {
super.initState();
_pinFocus.requestFocus();
}
@override
void dispose() {
_pinController.dispose();

View File

@ -44,6 +44,19 @@ class _UnlockFormState extends ConsumerState<UnlockForm> {
bool _passwordIsWrong = false;
bool _isObscure = true;
@override
void initState() {
super.initState();
_passwordFocus.requestFocus();
}
@override
void dispose() {
_passwordController.dispose();
_passwordFocus.dispose();
super.dispose();
}
void _submit() async {
setState(() {
_passwordIsWrong = false;