Flutter REST API Crash Course: Build a Coronavirus App
WHO CAN ACCESS THIS COURSE :-
- Beginner and intermediate-level Flutter developers (this course is NOT for absolute beginners)
WHAT ARE YOUR REQUIREMENTS FOR THIS COURSE ?
- 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
WHAT YOU ARE GOING TO LEARN FROM THIS COURSE ?
- Manufacture a straightforward, yet complete Coronavirus following application utilizing REST APIs
- Great application design: figure out how to structure your code and keep it secluded
- Meticulousness and accentuation on composing a creation prepared application
Welcome to this intensive lesson, where you will figure out how to utilize REST APIs with Dart and Flutter.
I made this course since REST APIs are utilized wherever in the present web. Also, on the off chance that you ace the rudiments of the Dart http library, you can compose Flutter applications that can take advantage of thousands of web APIs.
In this intense training you will fabricate a basic however totally utilitarian Coronavirus tracker application in Flutter.
Remembered for this course
- Short prologue to REST: what it is and how it functions.
- Overview of the nCoV 2019 wellbeing API. This is utilized to get worldwide information about the Coronavirus flare-up.
- Api keys and access tokens: what they are and how to utilize them.
- REST Client: a VSCode augmentation that you can use to send HTTP demands and view the reaction straightforwardly in VS Code.
- Design a REST API administration utilizing the Dart http bundle.
- Make asks for and parse the JSON reaction information into specifically model classes.
- Build a dashboard UI with pleasant looking cards that show the information from the API.
- Combine different API demands into a solitary reaction by utilizing fates.
- Use a RefreshIndicator to get refreshed information from the API.
- Error dealing with, and how to show ready discoursed to the client.
- Data reserving with Shared Preferences, so the information is saved money on gadget for disconnected use.
In particular, you will find out about great application design as an approach to structure our code and keep it measured.
This course is tied in with acing the rudiments. It covers numerous significant themes, with meticulousness, and accentuation on the most proficient method to compose a creation prepared application.
Before the finish of this course, you will have the option to construct Flutter applications that associate with whatever other REST API that you need to utilize.
The course follows a straight structure, and tells the best way to fabricate a completely utilitarian application without any preparation.
The substance is separated into numerous areas, each covering a particular point in detail.
Full source code is accommodated every exercise, and the whole task is accessible on GitHub.
Past all the video content, premium help is incorporated, so you can pose inquiries on the off chance that you stall out. I’ll give a valiant effort to address all inquiries inside 24 hours – yet please keep them pertinent to the course material.
This course isn’t for total apprentices.
- You should as of now be acquainted with the Dart Language. On the off chance that you are not, you can follow first experience with Dart, which is accessible for nothing on my YouTube channel.
- You should as of now have Flutter introduced on your framework, and Visual Studio Code or Android Studio arranged for Flutter advancement.
- You should as of now have some information on the most well-known Flutter gadgets, and comprehend the distinction among stateful and stateless gadgets.
This is a relentless compressed lesson. We will manufacture a full application without any preparation, yet I won’t clarify each and every progression in detail. Rather, I will zero in on the most significant ideas, and consistently disclose what we will construct and why, and afterward how to do it.
On the off chance that you need to figure out how to fabricate viable Flutter applications utilizing REST APIs, and become a superior programming engineer, at that point this course is for you.
I’m eager to impart this course to you, so select currently to begin.
- 7 sections • 50 lectures • 2h 35m total length
Intro to REST, the nCoV 2019 REST API, and REST Client6 lectures • 22min
- RESTful APIs: The BasicsPreview03:24
- The nCoV 2019 Coronavirus API: Setup instructions, API Keys and Access TokensPreview04:51
- REST Client for VS Code: Initial setup & sending requestsPreview05:10
- Using Environment Variables and excluding sensitive data with .gitignorePreview04:28
- REST Client: Adding the remaining requestsPreview04:25
- Useful Links & Resources00:04
Building an API Service with the Dart http package12 lectures • 34min
- App Architecture OverviewPreview02:48
- Installing the http packagePreview01:14
- Saving the API key + GitHub source code + the Error Lens extensionPreview02:37
- The API classPreview03:32
- The APIService class: requesting an access tokenPreview04:04
- Parsing the http response and retrieving the access tokenPreview02:47
- Using the API Service to show the access tokenPreview03:14
- Adding the remaining endpoints to the API classPreview02:01
- Requesting and parsing data from the remaining endpointsPreview05:21
- Using the APIService class to show endpoint dataPreview03:51
- Recap on the APIService classPreview02:19
- Useful Links & Resources00:18
Building a Data Repository and creating the basic UI8 lectures • 21min
- The Data Repository02:44
- Loading and refreshing the access token when needed02:50
- Adding a Provider for the DataRepository02:58
- Creating a basic dashboard UI03:47
- Creating a custom card widget to show endpoint data04:01
- Loading the initial endpoint data from the API02:28
- Adding a refresh indicator02:25
- Useful Links & Resources00:07
Loading data from multiple endpoints and polishing the UI7 lectures • 20min
- Loading data from multiple endpoints with Future.wait02:44
- The EndpointsData class02:19
- Improving the DataRepository class with generics and function arguments04:20
- Showing all the cards02:56
- Adding the icon assets to the project01:38
- Update the cards layout, image and color06:17
- Useful Links & Resources00:10
Date formatting and reading the last updated date from the server7 lectures • 16min
- Showing when the data was last updated: client vs server approach01:10
- Parsing date information from the API response data01:59
- Creating a new data model to hold the date and value from the API03:19
- Showing the last updated date in the UI02:30
- Formatting dates with the intl package05:08
- Add thousands’ separators with the NumberFormat class02:14
- Useful Links & Resources00:08
Error handling and caching data with Shared Preferences9 lectures • 38min
- Error handling overview, and understanding the call stack06:17
- Showing an alert dialog to the user05:21
- Completing the error handling code03:19
- Introduction to data persistence with Shared Preferences01:46
- Writing a DataCacheService08:32
- Integrating the DataCacheService in the DataRepository03:14
- Injecting the DataCacheService in main.dart04:15
- Hot fix: The getter ‘date’ was called on null05:08
- Useful Links & Resources00:06
Conclusions & next steps1 lecture • 2min
- Conclusion & next steps02:20