mirror of
https://github.com/Myzel394/quid_faciam_hodie.git
synced 2025-06-19 15:45:26 +02:00
improved error message on login screen
This commit is contained in:
parent
36e77cf6de
commit
927b15b63f
@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
|
|
||||||
"loginScreenTitle": "Anmelden",
|
"loginScreenTitle": "Anmelden",
|
||||||
"loginScreenLoginError": "E-Mail oder Passwort inkorrekt",
|
|
||||||
"loginScreenHelpText": "Melde dich an. Wenn du noch keinen Account besitzt, erstellen wir automatisch einen für dich.",
|
"loginScreenHelpText": "Melde dich an. Wenn du noch keinen Account besitzt, erstellen wir automatisch einen für dich.",
|
||||||
"loginScreenFormEmailLabel": "E-Mail",
|
"loginScreenFormEmailLabel": "E-Mail",
|
||||||
"loginScreenFormPasswordLabel": "Passwort",
|
"loginScreenFormPasswordLabel": "Passwort",
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
|
|
||||||
"loginScreenTitle": "Login",
|
"loginScreenTitle": "Login",
|
||||||
"loginScreenLoginError": "Invalid password or email",
|
|
||||||
"loginScreenHelpText": "Sign in to your account. If you do not have one already, we will automatically set up one for you.",
|
"loginScreenHelpText": "Sign in to your account. If you do not have one already, we will automatically set up one for you.",
|
||||||
"loginScreenFormEmailLabel": "Email",
|
"loginScreenFormEmailLabel": "Email",
|
||||||
"loginScreenFormPasswordLabel": "Password",
|
"loginScreenFormPasswordLabel": "Password",
|
||||||
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
|
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
|
||||||
import 'package:quid_faciam_hodie/constants/spacing.dart';
|
import 'package:quid_faciam_hodie/constants/spacing.dart';
|
||||||
import 'package:quid_faciam_hodie/screens/main_screen.dart';
|
import 'package:quid_faciam_hodie/screens/login_screen.dart';
|
||||||
|
|
||||||
import 'grant_permission_screen/permissions_required_page.dart';
|
import 'grant_permission_screen/permissions_required_page.dart';
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ class GrantPermissionScreen extends StatelessWidget {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: PermissionsRequiredPage(
|
child: PermissionsRequiredPage(
|
||||||
onPermissionsGranted: () {
|
onPermissionsGranted: () {
|
||||||
Navigator.pushReplacementNamed(context, MainScreen.ID);
|
Navigator.pushReplacementNamed(context, LoginScreen.ID);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -70,7 +70,7 @@ class _LoginScreenState extends AuthState<LoginScreen> with Loadable {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
context.showLongErrorSnackBar(
|
context.showLongErrorSnackBar(
|
||||||
message: localizations.loginScreenLoginError,
|
message: localizations.generalError,
|
||||||
);
|
);
|
||||||
|
|
||||||
emailController.clear();
|
emailController.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user