Open hegman12 opened 3 years ago
I needed the same thing and implemented a similar one but only with the set Date: https://github.com/iamvivekkaushik/DatePickerTimelineFlutter/pull/47
@hegman12 I don't think that what you did is a workaround, but the correct solution since it's good to have a way for the user to determine how he wants to control the date.
I only think that update the dependencies to nullsafety should be a totally different commit.
This PR adds 2 methods to controller - getCurrentDate and SetCurrentDate. These allow external widgets to set state of DatePicker. But more proper solution is to implement standard state management.
Description - There are 2 major ways to interact with DatePicker (or any widget).