fix changing locale breaking everything yay
This commit is contained in:
parent
e31246c892
commit
387d58dfa2
7 changed files with 53 additions and 25 deletions
|
@ -60,7 +60,11 @@ class _LoginFormState extends State<LoginForm> {
|
|||
),
|
||||
TextButton.icon(
|
||||
onPressed: () {
|
||||
formKey.currentState!.validate();
|
||||
bool isValid = formKey.currentState!.validate();
|
||||
if (!isValid) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
||||
content: Text("login-failed-snackbar-text".i18n())));
|
||||
}
|
||||
},
|
||||
icon: const Icon(Icons.login),
|
||||
label: Text("authorize-in-browser".i18n()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue