Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The spinner showing for a long time after the wrong credential submitted in #2

Open
iskandarzhilmi opened this issue Apr 15, 2020 · 1 comment

Comments

@iskandarzhilmi
Copy link

I've fixed it by writing the setState outsite of the try catch

@iskandarzhilmi iskandarzhilmi changed the title The spinner still showing after the wrong credential submitted in The spinner showing for a long time after the wrong credential submitted in Apr 15, 2020
@Raj-kar
Copy link

Raj-kar commented Jun 17, 2020

Use This code:-

` try {
final newUser = await _auth.signInWithEmailAndPassword(
email: email, password: password);

                  if (newUser != null) {
                    Navigator.pushReplacementNamed(context, ChatScreen.id);
                  }
                } catch (e) {
                  setState(() {
                    showSpinner = false;
                  });
                  print(e);
                }`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants