Parse JSON in the background

Update data over the internet

Send data to the internet

Cookbook

Networking

Send data to the internet

1. Add the http package

2. Sending data to server

3. Convert the http.Response to a custom Dart object

Create an Album class
Convert the http.Response to an Album

4. Get a title from user input

5. Display the response on screen

Complete example

Sending data to the internet is necessary for most apps.
The http package has got that covered, too.

This recipe uses the following steps:

Add the http package.

Send data to a server using the http package.

Convert the response into a custom Dart object.

Get a title from user input.

Display the response on screen.