After select a new date in Start Date field (first) and run setState() with new dates - second field has no updates in text, but when creates it has all the right values. Except FormFieldState. When field builds its date field text it gets from FormFieldState.value - and there's old value.
In result - if I want to select Finish Date after set Start Date after initial _end, it throws error (initialValue isBefore than firstDate)
If just change selection of the second field - everything ok (new date renders correctly).
I have a form with to fields to select range with week between (at least)
DateTime _start = DateTime.now(); DateTime _finish = _start.add(Duration(days: 7));
After select a new date in Start Date field (first) and run setState() with new dates - second field has no updates in text, but when creates it has all the right values. Except FormFieldState. When field builds its date field text it gets from FormFieldState.value - and there's old value.
In result - if I want to select Finish Date after set Start Date after initial _end, it throws error (initialValue isBefore than firstDate)
If just change selection of the second field - everything ok (new date renders correctly).
How I can fix this?