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

How to programmatically select date? #1

Closed
albert0m opened this issue May 26, 2020 · 5 comments · Fixed by #3
Closed

How to programmatically select date? #1

albert0m opened this issue May 26, 2020 · 5 comments · Fixed by #3
Labels
enhancement New feature or request

Comments

@albert0m
Copy link

great library, my only issue is that the selected date on the calendar stays always the same even if I refresh the widget. Is there any way to reset the indicator or to programmatically select a date?

@mduccc mduccc added the enhancement New feature or request label May 28, 2020
@mduccc
Copy link
Owner

mduccc commented May 28, 2020

Programmatically select a date, this feature will appear in the next version. Thank you.

@mduccc mduccc linked a pull request Jun 21, 2020 that will close this issue
@mduccc mduccc closed this as completed Jun 21, 2020
@albert0m
Copy link
Author

albert0m commented Jul 3, 2020

thank you for the update, that works but only after I opened the calendar.
I will try to explain all the steps to reproduce this problem:

  • Open the page with the calendar, today is July 3d.
  • I click on July 4th, the _selectedDate is updated and I can draw my content for July 4th.
  • Close the page with the calendar, reopen it.
  • The _selectedDate is July 3rd (today), but the highlighted date is still July 4th, but without drawing my content for July 4th. The loaded content is for the default _selectedDate, July 3rd.

It looks like it caches the previous click without clearing it when I reload it.

@mduccc
Copy link
Owner

mduccc commented Jul 22, 2020

Fix it in the next commit.

@albert0m
Copy link
Author

hi, any updates for the next commit? we're about to deliver our app and this is the only thing that looks a little off! thank you for your work!

@mduccc
Copy link
Owner

mduccc commented Aug 6, 2020

hi, any updates for the next commit? we're about to deliver our app and this is the only thing that looks a little off! thank you for your work!

Please update to the flutter_calendar_week: 0.2.1+1 version or last

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

Successfully merging a pull request may close this issue.

2 participants