We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
catchError
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(),
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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(),
The text was updated successfully, but these errors were encountered: