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
Add feature to convert String into DateTime.
Currently, valueTransformer only convert DateTime into String and executed onSave. But I want same way to convert String into DateTime as initialValue.
for example:
Map<String, dynamic> data = {
"birthday" : "1990-12-23 08:00:00",
};
...
FormBuilder(
initialValue: data,
child: Column(
children : [
FormBuilderDateTimePicker(
attribute: "birthday", // will throws error, because birthday value is not a subtype of DateTime
),
],
),
),
...
The text was updated successfully, but these errors were encountered:
Add feature to convert String into DateTime.
Currently, valueTransformer only convert DateTime into String and executed onSave. But I want same way to convert String into DateTime as initialValue.
for example:
The text was updated successfully, but these errors were encountered: