Merge branch 'fix/tabLogin' into 'main'

fix: login form supports switching fields via tab

See merge request famedly/fluffychat!787
This commit is contained in:
Krille Fear 2022-03-27 16:58:57 +00:00
commit 26af3fc2f2

View File

@ -38,6 +38,7 @@ class LoginView extends StatelessWidget {
autofocus: true,
onChanged: controller.checkWellKnownWithCoolDown,
controller: controller.usernameController,
textInputAction: TextInputAction.next,
keyboardType: TextInputType.emailAddress,
autofillHints:
controller.loading ? null : [AutofillHints.username],
@ -56,6 +57,7 @@ class LoginView extends StatelessWidget {
autofillHints:
controller.loading ? null : [AutofillHints.password],
controller: controller.passwordController,
textInputAction: TextInputAction.next,
obscureText: !controller.showPassword,
onSubmitted: controller.login,
decoration: InputDecoration(