Loading topic
pubspec.yaml, run a Flutter app on at least one emulator or simulator, and read an XML or plist file. The previous chapter cove7 min readhttp package, read the response, and turn the body into a typed object.5 min readhttp package and read response.body. It also assumes you know Dart null safety, named parameters and factory constructors. Here you will convert the JSON text in a response body into typed Dart objects, and handle the cases where t5 min readhttp package, decode JSON into a model class, and read a status code. It also assumes you are comfortable with async/await and named parameters. Here you will cover the four methods that change data on a server: POST, PUT, PATCH and DELE6 min readhttp package and decode the JSON response. You should also be comfortable with async/await and with passing a Map as a named argument. Here you will learn how to attach headers to requests, send credentials in the common scheme5 min readhttp package, and decode JSON into a model class. Those steps were covered in the earlier chapters on GET requests and JSON models. Here the focus is on what happens when the request does not go as planned.6 min readasync and await code, you have the http package in pubspec.yaml, and you know the ApiException pattern from the error-handling chapter. It covers what a timeout does, which failures are worth retrying, and how to retry without making things worse.5 min readhttp package and decode JSON into a Dart model. It also assumes you have seen ApiException from the error-handling chapter and are comfortable with async/await. Here you move the request code out of widgets and into one class that ever4 min readFuture from your networking code into a screen that displays a loading indicator, the data, or an error. It assumes you know Dart classes, null safety and named parameters, async/await, the StatefulWidget lifecycle, and how to add a package to pubspec.yaml.5 min readasync/await, and add a package to pubspec.yaml. It also assumes you have a fetchPost function that takes an http.Client, as built earlier in this tutorial. Here you will test that code without touching the real netw5 min readhttp package and decode it with jsonDecode into model classes. You should also know async/await and the basics of StatefulWidget. Here you will learn when decoding JSON on the UI thread causes dropped frames, how to move that w6 min readFuture, async/await, the http package, the Post model, and the ApiException type from the error handling chapter. Here you will rebuild the same requests with Dio, a third-party HTTP client. You w4 min readDio instance with a base URL and timeouts, as in the previous chapter. It also assumes you are comfortable with async/await and Future. You will move three cross-cutting concerns out of individual calls and into reusable classes: logging, authentica4 min read