-
Notifications
You must be signed in to change notification settings - Fork 446
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
Snapshot has no data, Loading widget is shown forever #3
Comments
Ya definitely if you are using streambuilder in flutter then you might be Know about streambuilder build multiple times when some network or streams flow in userdata that's why! And share the full screenshot of error |
I faced the same problem. My problem was with the userData getter in my database.dart file. I looked through your database.dart file and could not find any problem. Maybe I missed something. Compare your database.dart file with the tutorial database.dart file for this chapter. Do the same with the settings_form.dart file. Maybe that will help. |
Yes I am facing the same issue. |
Im also facing the same issue pls come to my aid |
I changed the variable String sugars to int sugars everywhere in the code also in the sugars list. This resolved the error for me. |
anyone has solved this problem? |
yes, check it out here: |
I followed the tutorials thoroughly, but loading widget is shown infinitely. I printed a message in output before if statement and it shows that snapshot has no data and so it goes to else statement and shows loading widget infinitely.
your code
flutter-firebase/brew_crew/lib/screens/home/settings_form.dart
Line 32 in bf1a908
my code
https://github.com/om8007/brew_crew/blob/2178e591785a00e12cf172a8d55cd8e49c503773/lib/screens/home/settings_form.dart#L28
output
![Screenshot (156)](https://user-images.githubusercontent.com/32073787/71712683-4cca8180-2e2c-11ea-9c05-864b7db8971b.png)
This issue has been faced with some more coders as can be seen in comments for video 25
The text was updated successfully, but these errors were encountered: