iamvivekkaushik / DatePickerTimelineFlutter

Flutter Date Picker Library that provides a calendar as a horizontal timeline
Apache License 2.0
282 stars 198 forks source link

What's the use of setDatePickerState ? and how to use it #53

Closed william-levi closed 3 years ago

william-levi commented 3 years ago

Actually I'm trying to set the date programatically by clicking from a button

iamvivekkaushik commented 3 years ago

I've added a new function to the controller setDateAndAnimate you will need to use the github version of this repo in your project.

william-levi commented 3 years ago

@iamvivekkaushik thanks ! nice package by the way :)

iamvivekkaushik commented 3 years ago

Thank you!

ChineOnw commented 3 years ago

Unfortunately the UI does not change. When I debugged it the variable has the new value, but the UI is not changing.

ChineOnw commented 3 years ago

Unfortunately the UI does not change. When I debugged it the variable has the new value, but the UI is not changing.

I just wrapped the method call inside setState() and it works fine.