This commit is contained in:
zoe 2022-07-02 00:26:58 +02:00
parent 48e4f8eea4
commit d0f02d1ad6
3 changed files with 10 additions and 14 deletions

View file

@ -62,6 +62,7 @@ class _LoginFormState extends State<LoginForm> {
if (value!.isEmpty || !isValidUsername(name: value)) {
return "user-id-not-valid".i18n();
}
return null;
},
),
TextButton.icon(
@ -128,9 +129,11 @@ class _AuthPageState extends State<AuthPage> {
}
}
return TextButton.icon(
onPressed: null,
icon: const Icon(Icons.check),
label: Text("confirm-button".i18n()));
onPressed: () {
Navigator.pushReplacementNamed(context, "/");
},
icon: const Icon(Icons.arrow_forward),
label: Text("confirm".i18n()));
} else {
return const CircularProgressIndicator();
}