Welcome to this crash course, where you will learn how to use REST APIs with Dart and Flutter.
I created this course because REST APIs are used everywhere in today's web. And if you master the basics of the Dart http library, you can write Flutter apps that can tap into thousands of web APIs.
In this crash course you will build a simple but completely functional Coronavirus tracker application in Flutter.
Included in this course
✅ Short introduction to REST: what it is and how it works.
✅ Overview of the nCoV 2019 health API. This is used to fetch global data about the Coronavirus outbreak.
✅ Api keys & access tokens: what they are and how to use them.
✅ REST Client: a VSCode extension that you can use to send HTTP requests and view the response directly in VS Code.
✅ Design a REST API service using the Dart http package.
✅ Make requests and parse the JSON response data into strongly-typed model classes.
✅ Build a dashboard UI with nice-looking cards that show the data from the API.
✅ Combine multiple API requests into a single response by using futures.
✅ Use a RefreshIndicator to get updated data from the API.
✅ Error handling, and how to show alert dialogs to the user.
✅ Data caching with Shared Preferences, so that the data is saved on device for offline use.
Most importantly, you will learn about good app architecture as a way to structure our code and keep it modular.
This course is all about mastering the basics. It covers many important topics, with attention to detail, and emphasis on how to write a production-ready app.
By the end of this course, you will be able to build Flutter apps that connect with any other REST API that you want to use.