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

Snapshot has no data, Loading widget is shown forever #3

Open
om8007 opened this issue Jan 3, 2020 · 7 comments
Open

Snapshot has no data, Loading widget is shown forever #3

om8007 opened this issue Jan 3, 2020 · 7 comments

Comments

@om8007
Copy link

om8007 commented Jan 3, 2020

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

my code
https://github.com/om8007/brew_crew/blob/2178e591785a00e12cf172a8d55cd8e49c503773/lib/screens/home/settings_form.dart#L28

output
Screenshot (156)

This issue has been faced with some more coders as can be seen in comments for video 25

@codingstark-dev
Copy link

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

@flutternoob
Copy link

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.

@karan316
Copy link

Yes I am facing the same issue.

@aishy123
Copy link

aishy123 commented Feb 4, 2021

Im also facing the same issue pls come to my aid

@sidra3814
Copy link

I changed the variable String sugars to int sugars everywhere in the code also in the sugars list. This resolved the error for me.

@thawahsaw
Copy link

anyone has solved this problem?

@VishruthVS
Copy link

yes, check it out here:
https://github.com/VishruthVS/FlutterAuthentication

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

8 participants