-
Notifications
You must be signed in to change notification settings - Fork 678
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
183. Registering Users with Firebase using FirebaseAuth #36
Comments
somebody help!!! |
use User instead of FirebaseUser |
Thanks Nawab that is fixed now searching for _ChatScreenState |
After firebase_auth version 0.18.0 Few breaking updates were made in firebase_auth 0.18.0. FirebaseUser is now called User, currentUser is a getter, and currentUser is synchronous. This makes the code: @OverRide void getcurrentuser() { Before firebase_auth version 0.18.0 email is a property of FirebaseUser object. Since auth.currentUser() return a future, you have to await in order to get the user object. |
Thank you Shivam! |
Thank you so much!! |
In the exact same lesson, Please help while using modal progess hud so that it doesn't spin while the password and email are not entered and i click on login button but only spin when the user email and password are entered |
code is exactly matched with the lesson but these two errors came out of nowhere:-
lib/screens/chat_screen.dart:14:3: Error: Type 'FirebaseUser' not found.
FirebaseUser loggedInUser;
^^^^^^^^^^^^
lib/screens/chat_screen.dart:12:7: Error: The non-abstract class '_ChatScreenState' is missing implementations for these members:
Try to either
class _ChatScreenState extends State {
^^^^^^^^^^^^^^^^
/C:/flutter/packages/flutter/lib/src/widgets/framework.dart:1428:10: Context: 'State.build' is defined here.
Widget build(BuildContext context);
^^^^^
lib/screens/chat_screen.dart:14:3: Error: 'FirebaseUser' isn't a type.
FirebaseUser loggedInUser;
^^^^^^^^^^^^
The text was updated successfully, but these errors were encountered: