iamshaunjp / iamshaunjp/flutter-firebase

Anon LogOut issue, Lesson #9

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
586
Forks
427
PR merge metrics
No merged PRs in 30d

Description

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 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(),

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.