0 votes
in Flutter by
How can we create HTTP requests in Flutter?

1 Answer

0 votes
by

To create HTTP requests, use the HTTP package (import 'package:http/http.dart' as http;). In the following manner, we can make the Requests:

http.get(‘https://jsonplaceholder.typicode.com/albums/1‘);  

It will return a Future <http.Response>

...