iamvivekkaushik/DatePickerTimelineFlutter

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

Opened this issue · 1 comments

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.

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);
    });