Closed tonypottera24 closed 2 years ago
https://github.com/flutter-form-builder-ecosystem/flutter_form_builder/issues/648
In here, flutter_form_builder
team said that valueTransformer
is built for type casting
You can separated this logic from widget. Maybe create a state with ChangeNotifier or other solution
I see.
I'm using
form_builder_image_picker
withDio
, which is a package that handles HTTP request. I'm wondering if there's any better way to case theXFile
value given byform_builder_image_picker
toMultipartFile
(provided byDio
). I tried to accomplish this by using thevalueTransformer
as follows.However, since valueTransformer does not wait for future. I'll get List<Future> in the end.
Does anyone have some advice?