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

Current month data is not displaying on load sometimes #8

Closed
apos37 opened this issue Jun 12, 2020 · 2 comments
Closed

Current month data is not displaying on load sometimes #8

apos37 opened this issue Jun 12, 2020 · 2 comments

Comments

@apos37
Copy link

apos37 commented Jun 12, 2020

The calendar works great, but for some reason the data shows up sometimes when I load the screen, and other times I go back to the home screen and open the calendar again and the current month's data doesn't show up. I have to click next or previous month and go back to see them when this happens. Any suggestions to get it to persist on every load? Thanks in advance...

@mattgraham1
Copy link
Owner

mattgraham1 commented Jun 16, 2020

Hey @mrgandy I haven't been actively working on this for some time now. To be honest, it was a great deep dive into Flutter / Firebase for me. I've contemplated pulling the app and retiring it as I haven't added anything to it for so long. If I don't do that I'll take a look into the month view not refreshing, but from your details above it sounds like the OnResume() callback from Android isn't fetching the data every time. Something not in sync with the OS lifecycle callbacks would be my guess.

@apos37
Copy link
Author

apos37 commented Jun 16, 2020

Thank you, Matt. I completely understand. It seems to be working for me now that I switched out the FutureBuilder with a StreamBuilder.

@apos37 apos37 closed this as completed Jun 16, 2020
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