iamvivekkaushik / DatePickerTimelineFlutter

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

Add a way to unselect date #87

Open martinpelli opened 8 months ago

martinpelli commented 8 months ago

Is your feature request related to a problem? Please describe. I have two date picker timelines, and when I select the first one I am rebuilding the widget to unselect the second one, because second one depends on first one. Problem is that rebuilding second date picker with initialSelectedDate with null is not taking any effect. I achieved the result rebuilding that property with null and with datePickerController.animateToSelection() but is raising an exception because currentDate is null but is actually what I need, currentDate in null.