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

Anon LogOut issue, Lesson #9 #11

Open
TatuSaa opened this issue Apr 9, 2020 · 0 comments
Open

Anon LogOut issue, Lesson #9 #11

TatuSaa opened this issue Apr 9, 2020 · 0 comments

Comments

@TatuSaa
Copy link

TatuSaa commented Apr 9, 2020

While pushing logout you are actually logged out from Firebase but it won't return to authentication screen.

Error:
Exception caught by provider
The following assertion was thrown:
An exception was throw by _MapStream<FirebaseUser, User> listened by

StreamProvider, but no catchError was provided.

Exception:
NoSuchMethodError: The getter 'uid' was called on null.
Receiver: null
Tried calling: uid

FIX:
@OverRide
Widget build(BuildContext context) {
return StreamProvider.value(
catchError: (_, __) => null,
//add above to main.dart
value: AuthService().user,
child: MaterialApp(
home: Wrapper(),

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

1 participant