http request php flutter code example
Example 1: can we send raw json in get method in flutter
final queryParameters = {
'name': 'Bob',
'age': '87',
};
final uri = Uri.http('www.example.com', '/path', queryParameters);
final headers = {HttpHeaders.contentTypeHeader: 'application/json'};
final response = await http.get(uri, headers: headers);
Example 2: http flutter
http: ^0.12.2