iamvivekkaushik / DatePickerTimelineFlutter

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

when i move to date with animateToDate, selection color still remain. How can I fix it? #66

Open gamcho3 opened 2 years ago

gamcho3 commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

neerajapex commented 1 year ago

I don't know If you have got the solution. But I faced the same problem and solved by these methods.

  1. I used the fixed version of this library. date_picker_timeline_fixed

  2. Define the date picker as mentioned in the example.

  3. Then called the 'setDateAndAnimate(_updatedDate)' method of DatePickerController inside 'setState(...) whenever I needed to change the date. setState(() { _datePickerController?.setDateAndAnimate(_updatedDate); });