datetime_picker_formfield
datetime_picker_formfield copied to clipboard
How can I change the datetime value by setState
I used the initialValue but it only worked the first time. When I setState((){ }) and pass a different value, it doesn't change.
I think once you've rendered this, the initialValue cannot be changed (even using setState). I do a workaround by substituting the widget with a Container() first before the value is ready.
@aldycool would you mind to share some code?