From 7be11e326e3f83dd9390fe3d48412f31eb3e0f4b Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Sat, 19 Feb 2022 13:10:09 +0100 Subject: [PATCH] chore: Change login input label to email or username --- assets/l10n/intl_en.arb | 3 ++- lib/pages/login/login_view.dart | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index f11796e1..db2891d3 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -2731,5 +2731,6 @@ "unsupportedAndroidVersion": "Unsupported Android version", "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.", - "experimentalVideoCalls": "Experimental video calls" + "experimentalVideoCalls": "Experimental video calls", + "emailOrUsername": "Email or username" } diff --git a/lib/pages/login/login_view.dart b/lib/pages/login/login_view.dart index 1b0b44f3..eb6be3c7 100644 --- a/lib/pages/login/login_view.dart +++ b/lib/pages/login/login_view.dart @@ -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(