-
Notifications
You must be signed in to change notification settings - Fork 6
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
can't get chat branch working #1
Comments
I figured it out. I referenced the chat branch date (Nov 20-30) and so package version 0.0.35 works. I also had to put firestore into test mode because adding users to chatroom threw firestore authentication error. There are breaking changes to the latest package and I don't quite understand what to do. Would be great to update the demo to use the latest package and specify the updated firestore rules. Thanks again for your work :) |
@thruthesky Updating this chat example with fireflutter 0.0.48 would be very useful. |
@thruthesky I'm still having trouble getting chat to work with this sample_app (chat branch) and fireflutter 0.0.48 I also took some guesses onUserChange etc. Can you please try the demo and update the deprecated code to work with 0.0.48? I think it's just a few variable changes but here are some issues I'm having. chat.room.screen.dart 'chatSendMessage' is deprecated and shouldn't be used. User ChatRoom. chat.enterance.screen.dart A value of type 'ChatPrivateRoom' can't be assigned to a variable of type 'Map<String, dynamic>'. 'userIsLoggedIn' is deprecated and shouldn't be used. Map<String, dynamic> userPublicData |
Good morning. It's very hard to catch what is causing problems. Can you share your git repo if possible? So, that I can clone and test your code. |
@thruthesky i simply added fireflutter 0.0.48 to pubspec.yaml in the "chat" branch. you will see when running several deprecated issues |
Thanks for the nice sample app! I got the main branch working fairly quickly. But when I switched to the chat branch, I had no luck. Any help greatly appreciated. Thanks!
Issue 1:
the pubspec.yaml file references:
fireflutter:
path: packages/fireflutter
but that path doesn't exist.
Issue 2:
I tried just referencing the package directly with:
fireflutter: ^0.0.48
When I try to run I get several errors such as:
The getter 'userChange' isn't defined for the type 'FireFlutter'.
Try importing the library that defines 'userChange', correcting the name to the name of an existing getter, or defining a getter or field named 'userChange'.
A value of type 'ChatPrivateRoom' can't be assigned to a variable of type 'Map<String, dynamic>'.
Try changing the type of the variable, or casting the right-hand type to 'Map<String, dynamic>'.
The getter 'info' isn't defined for the type 'ChatRoom'.
Try importing the library that defines 'info', correcting the name to the name of an existing getter, or defining a getter or field named 'info'.
The getter 'userChange' isn't defined for the type 'FireFlutter'.
Try importing the library that defines 'userChange', correcting the name to the name of an existing getter, or defining a getter or field named 'userChange'.
and several others.
The text was updated successfully, but these errors were encountered: