Flutter REST API Crash Course: Build a Coronavirus App
4.7 (26 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
267 students enrolled

Flutter REST API Crash Course: Build a Coronavirus App

Build a Coronavirus Tracking App, and learn how to use REST APIs in Flutter
Hot & New
4.7 (26 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
267 students enrolled
Created by Andrea Bizzotto
Last updated 5/2020
English [Auto-generated]
Current price: $13.99 Original price: $19.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 3 hours on-demand video
  • 8 articles
  • 42 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Build a simple, yet complete Coronavirus tracking application using REST APIs
  • Good app architecture: learn how to structure your code and keep it modular
  • Attention to detail and emphasis on writing a production-ready app
Course content
Expand all 53 lectures 02:47:30
+ Building a Data Repository and creating the basic UI
8 lectures 21:20
The Data Repository
Loading and refreshing the access token when needed
Adding a Provider for the DataRepository
Creating a basic dashboard UI
Creating a custom card widget to show endpoint data
Loading the initial endpoint data from the API
Adding a refresh indicator
Useful Links & Resources
+ Loading data from multiple endpoints and polishing the UI
7 lectures 20:24
Loading data from multiple endpoints with Future.wait
The EndpointsData class
Improving the DataRepository class with generics and function arguments
Showing all the cards
Adding the icon assets to the project
Update the cards layout, image and color
Useful Links & Resources
+ Date formatting and reading the last updated date from the server
7 lectures 16:28
Showing when the data was last updated: client vs server approach
Parsing date information from the API response data
Creating a new data model to hold the date and value from the API
Showing the last updated date in the UI
Formatting dates with the intl package
Add thousands' separators with the NumberFormat class
Useful Links & Resources
+ Error handling and caching data with Shared Preferences
10 lectures 39:47
Error handling overview, and understanding the call stack
Showing an alert dialog to the user
Completing the error handling code
Introduction to data persistence with Shared Preferences
Writing a DataCacheService
Integrating the DataCacheService in the DataRepository
Injecting the DataCacheService in main.dart
Hot fix: The getter 'date' was called on null
Conclusion & next steps
Useful Links & Resources
  • Familiarity with the Dart programming language
  • Prior Flutter knowledge: stateless and stateful widgets, common UI widgets
  • Flutter installed on the system
  • VS Code or Android Studio, configured for Flutter development

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.

Course organization

The course follows a linear structure, and shows how to build a fully functional application from scratch.

The content is divided into multiple sections, each covering a specific topic in detail.

Full source code is provided for each lesson, and the entire project is available on GitHub.

Premium Support

Beyond all the video content, premium support is included, so that you can ask questions if you get stuck. I'll do my best to answer all questions within 24 hours - but please keep them relevant to the course material.


This course is NOT for absolute beginners.

- You should already be familiar with the Dart Language. If you are not, you can follow my introduction to Dart, which is available for free on my YouTube channel.

- You should already have Flutter installed on your system, and Visual Studio Code or Android Studio configured for Flutter development.

- You should already have some knowledge of the most common Flutter widgets, and understand the difference between stateful and stateless widgets.

Teaching style

This is a fast-paced crash course. We will build a full application from scratch, but I will not explain every single step in detail. Instead, I will focus on the most important concepts, and always explain what we're going to build and why, and then how to do it.

Enroll Today

If you want to learn how to build maintainable Flutter apps using REST APIs, and become a better software engineer, then this course is for you.

I'm very excited to share this course with you, so enroll now to get started.

Who this course is for:
  • Beginner and intermediate-level Flutter developers (this course is NOT for absolute beginners)