fayaz07 / flutter_firebase

Implementing features of firebase with flutter
92 stars 67 forks source link

I'd like to go to the LetsChat page after verifying automatically. #9

Closed wann2 closed 4 years ago

wann2 commented 4 years ago

How can I go to LetsChat screen in lets_text.dart after onAuthenticationSuccessful() in code.dart?

I added the below, but I got an error.

static onAuthenticationSuccessful() { // TODO: handle authentication successful Navigator.of(context).pop(); Navigator.of(context).pushReplacement(CupertinoPageRoute( builder: (BuildContext context) => LetsChat())); }

Unhandled Exception: NoSuchMethodError: The method 'findAncestorStateOfType' was called on null.

fayaz07 commented 4 years ago

I will look into it

fayaz07 commented 4 years ago

check latest commit