chore: Change login input label to email or username

This commit is contained in:
Krille Fear 2022-02-19 13:10:09 +01:00
commit 5851dc5460
2 changed files with 5 additions and 3 deletions

View file

@ -38,13 +38,14 @@ class LoginView extends StatelessWidget {
autofocus: true,
onChanged: controller.checkWellKnownWithCoolDown,
controller: controller.usernameController,
keyboardType: TextInputType.emailAddress,
autofillHints:
controller.loading ? null : [AutofillHints.username],
decoration: InputDecoration(
prefixIcon: const Icon(Icons.account_box_outlined),
hintText: L10n.of(context)!.username,
hintText: L10n.of(context)!.emailOrUsername,
errorText: controller.usernameError,
labelText: L10n.of(context)!.username),
labelText: L10n.of(context)!.emailOrUsername),
),
),
Padding(