1.

How can we create HTTP requests in Flutter?

Answer»

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>.



Discussion

No Comment Found