Closed wann2 closed 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.
I will look into it
check latest commit
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.