Making RESTful API Calls with HTTP
摘要
We're getting really good at managing the state of our application, but where will that data come from? A local file? A local database? User-entered? Sure. Those are all possibilities, but real-world apps get real-world data from a server out in the cloud somewhere. Your application will make HTTP calls, hopefully asynchronous RESTful HTTP API calls. It'll wait for and process the response and usually display that data. Wow! That's a lot of buzzwords, am I right? In this chapter, we're going to learn what those things mean and how to handle HTTP requests and responses of all types in your Flutter app. Here’s what we need to know: