chore: Change login input label to email or username

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

View File

@ -2731,5 +2731,6 @@
"unsupportedAndroidVersion": "Unsupported Android version", "unsupportedAndroidVersion": "Unsupported Android version",
"unsupportedAndroidVersionLong": "This feature required a never Android version. Please check for updates or Lineage OS support.", "unsupportedAndroidVersionLong": "This feature required a never Android version. Please check for updates or Lineage OS support.",
"videoCallsBetaWarning": "Please note that video calls are currently in beta. They might not work as expected or work at all on all platforms.", "videoCallsBetaWarning": "Please note that video calls are currently in beta. They might not work as expected or work at all on all platforms.",
"experimentalVideoCalls": "Experimental video calls" "experimentalVideoCalls": "Experimental video calls",
"emailOrUsername": "Email or username"
} }

View File

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