iamvivekkaushik / DatePickerTimelineFlutter

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

Added didUpdateWidget. This function called whenever the widget configuration changes. #64

Open Husnain-Asharf opened 2 years ago

Husnain-Asharf commented 2 years ago

If the parent widget rebuilds , the framework will update the [widget] property of this [State] object to refer to the new widget and then call this method with the previous widget as an argument.

Override this method to respond when the [widget] changes.

The framework always calls [build] after calling [didUpdateWidget], which means setState not required in thi function.

I used this function update current date if it's change and animate to this date.