Update data over the internet

Updating data over the internet is necessary for most apps. The http package has got that covered!

This recipe uses the following steps:

  1. Add the http package.
  2. Update data over the internet using the http package.
  3. Convert the response into a custom Dart object.
  4. Get the data from the internet.
  5. Update the existing title from user input.
  6. Update and display the response on screen.

1. Add the http package

To add the http package as a dependency, run flutter pub add:

flutter pub add http