chore: Change login input label to email or username
This commit is contained in:
parent
c73c575378
commit
5851dc5460
2 changed files with 5 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue