Skip to content
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

i dont know where this error message is coming from #38

Open
codeincraft opened this issue May 26, 2021 · 2 comments
Open

i dont know where this error message is coming from #38

codeincraft opened this issue May 26, 2021 · 2 comments

Comments

@codeincraft
Copy link

IMG-20210526-WA0037
IMG-20210526-WA0039
IMG-20210526-WA0041
Screenshot_20210526-011357

@eatmyaspirin
Copy link

from what I can see apparently the text widget you use in your "messagebubbles" isnt actually getting any data ie. the string variable is null
from what I can see, you did
final messageText = message.data['text'];
final messageSender = message.data['sender'];
using the .get method on the "message" object should fix it :
final messageText = message.get('text');
final messageSender = message.get('sender');

alternatively
final messageText = message['text'];
final messageSender = message['sender'];

@codeincraft
Copy link
Author

yeah, thanks to you all for your comments, actually I already fixed the problem. it was actually coming from my firebase set up. I was passing a null argument into my fire base

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants