Miltipart post request in Flutter web || pick image and post to backend service (Server)

preview_player
Показать описание


dependencies:

Credits:
Рекомендации по теме
Комментарии
Автор

thank you so much bro, saved my day <3

sabermohamed
Автор

Thank you so much, this really help me

linhnguyenvan
Автор

What if I want to use with various fields like username or email, password,
image, ... to post in api, then I want to use this method as a return type (Specific model type). Can I and how?

samnangsokhorncom
Автор

hello i try this code but i have this Error: Expected a value of type 'Map<String, String>', but got one of type 'LinkedMap<dynamic, dynamic>'

gradisopralamedia
Автор

you have not included changenotifierprovider in void main()

void main() {
ChangeNotifierProvider(
create: (context) => MyProvider(),
);
runApp(const MyApp());
}

Debjeet
Автор

Hello, I get this error
Error: Expected a value of type 'Map<String, String>', but got one of type 'LinkedMap<dynamic, dynamic>'

haldunmatar
Автор

@Dev Clips " var headers = {
//YOUR HEADERS
<String, String>{
'Content-Type': 'application/json; charset=UTF-8',
}
};
var request = http.MultipartRequest('POST', Uri.parse(url));




I get the following error at : The argument type 'Set<Map<String, String>>' can't be assigned to the parameter type 'Map<String, String>'. any way to fix this?

JonathanKippers
Автор

olá, show esse código flutter web, tem como mostrar o exemplo de php server e os dados headers, valeu...

adenilsonjsilvastb
Автор

Error: NoSuchMethodError: 'readAsBytes'
Anyone?

xIvalicex
Автор

Hi please make a video on how to take pictures in flutter web

tulasireddy