-
Notifications
You must be signed in to change notification settings - Fork 132
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
Breaking Changes & Deprecations #10
Comments
also change before:FirebaseUser loggedInUser; after:User loggedInUser; because FierbaseUser Deprecated |
Yeah.. .... and second changes its import firebase auth and deprecated FirebaseUser change to auth.User import 'package:firebase_auth/firebase_auth.dart' as auth; @OverRide
} void getCurrentUser() { Lesson N18-19. void getMessages() async { |
Also, guide the latest code regarding stream builder (L#21. Turning Streams into Widgets Using the StreamBuilder) as I didn't get the expected results. mine code is: // i get the error here on the parenthesis
|
I got this error fix by using adding this: // i get the error fix here by adding fields after the parenthesis |
this is how I fixed the buildstream error StreamBuilder(
|
final messageText = message.data()['text']; isn't working for me. i get an error: The operator '[]' isn't defined for the type 'Object'. (undefined_operator at [flash_chat] lib\screens\chat_screen.dart:114) Wondering if anybody has encountered this/has a fix |
final messageText = message['text']; you can fix it |
worked like a charm. thanks! |
This was final StreamBuilder returned from _firestore.collection('messages').snapshots(); Hope this helps someone.
|
thank you |
This works and consider this as final solution. |
thanks so much |
Hey all,
Firebase's API for flutter has changed the way developers integrate Flutter applications with Firebase. So exist a migration guide to help with updating existing and new projects for Flash chat.
Please check it out: Migration Guide
About me, I had to do a call to
Firebase.initializeApp();
in order to run successuful.The text was updated successfully, but these errors were encountered: