You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi All,
I have a problem of refreshing my DateTimeFormField after a setState update, do someone having the same problem or I am just missing the right code?
Here is my code: DateTimeFormField( initialValue: myInitialValue, decoration: const InputDecoration( suffixIcon: Icon(Icons.event_note), labelText: 'Time line', ), mode: DateTimeFieldPickerMode.date, onDateSelected: (DateTime value) { myInitialValue = value; }, ),
Then hope to see the date changing after a: setState(() { myInitialValue = value; });
I was hoping to have something like a controller here but can't find it.
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hi All,
I have a problem of refreshing my DateTimeFormField after a setState update, do someone having the same problem or I am just missing the right code?
Here is my code:
DateTimeFormField( initialValue: myInitialValue, decoration: const InputDecoration( suffixIcon: Icon(Icons.event_note), labelText: 'Time line', ), mode: DateTimeFieldPickerMode.date, onDateSelected: (DateTime value) { myInitialValue = value; }, ),
Then hope to see the date changing after a:
setState(() { myInitialValue = value; });
I was hoping to have something like a controller here but can't find it.
Thanks in advance
The text was updated successfully, but these errors were encountered: