How should create HTTP requests in flutter?

Forums FlutterHow should create HTTP requests in flutter?
Staff asked 2 years ago

Answers (1)

Add Answer
Parth Marked As Accepted
Staff answered 2 years ago

Use the HTTP package to create HTTP requests (import ‘package:http/http.dart’ as http;). We can make the Requests in the following ways:

It will return a Future http.Response> if you call http.get(https://jsonplaceholder.typicode.com/albums/1).

Subscribe

Select Categories