Этот материал находится в платной подписке. Оформи премиум подписку и смотри или слушай Flutter REST API Crash Course: Build a Coronavirus App, а также все другие курсы, прямо сейчас!
Премиум
  • Урок 1. 00:03:25
    RESTful APIs: The Basics
  • Урок 2. 00:04:52
    The nCoV 2019 Coronavirus API: Setup instructions, API Keys and Access Tokens
  • Урок 3. 00:05:11
    REST Client for VS Code: Initial setup & sending requests
  • Урок 4. 00:04:29
    Using Environment Variables and excluding sensitive data with .gitignore
  • Урок 5. 00:04:26
    REST Client: Adding the remaining requests
  • Урок 6. 00:02:49
    App Architecture Overview
  • Урок 7. 00:01:15
    Installing the http package
  • Урок 8. 00:02:38
    Saving the API key + GitHub source code + the Error Lens extension
  • Урок 9. 00:03:33
    The API class
  • Урок 10. 00:04:05
    The APIService class: requesting an access token
  • Урок 11. 00:02:48
    Parsing the http response and retrieving the access token
  • Урок 12. 00:03:15
    Using the API Service to show the access token
  • Урок 13. 00:03:01
    Adding the remaining endpoints to the API class
  • Урок 14. 00:05:22
    Requesting and parsing data from the remaining endpoints
  • Урок 15. 00:03:52
    Using the APIService class to show endpoint data
  • Урок 16. 00:02:20
    Recap on the APIService class
  • Урок 17. 00:02:45
    The Data Repository
  • Урок 18. 00:02:51
    Loading and refreshing the access token when needed
  • Урок 19. 00:02:59
    Adding a Provider for the DataRepository
  • Урок 20. 00:03:48
    Creating a basic dashboard UI
  • Урок 21. 00:04:02
    Creating a custom card widget to show endpoint data
  • Урок 22. 00:02:29
    Loading the initial endpoint data from the API
  • Урок 23. 00:02:26
    Adding a refresh indicator
  • Урок 24. 00:02:45
    Loading data from multiple endpoints with Future.wait
  • Урок 25. 00:02:20
    The EndpointsData class
  • Урок 26. 00:04:21
    Improving the DataRepository class with generics and function arguments
  • Урок 27. 00:02:57
    Showing all the cards
  • Урок 28. 00:01:39
    Adding the icon assets to the project
  • Урок 29. 00:06:18
    Update the cards layout, image and color
  • Урок 30. 00:01:11
    Showing when the data was last updated: client vs server approach
  • Урок 31. 00:02:00
    Parsing date information from the API response data
  • Урок 32. 00:03:20
    Creating a new data model to hold the date and value from the API
  • Урок 33. 00:02:31
    Showing the last updated date in the UI
  • Урок 34. 00:05:09
    Formatting dates with the intl package
  • Урок 35. 00:02:15
    Add thousands' separators with the NumberFormat class
  • Урок 36. 00:06:18
    Error handling overview, and understanding the call stack
  • Урок 37. 00:05:22
    Showing an alert dialog to the user
  • Урок 38. 00:03:20
    Completing the error handling code
  • Урок 39. 00:01:47
    Introduction to data persistence with Shared Preferences
  • Урок 40. 00:08:33
    Writing a DataCacheService
  • Урок 41. 00:03:15
    Integrating the DataCacheService in the DataRepository
  • Урок 42. 00:04:16
    Injecting the DataCacheService in main.dart
  • Урок 43. 00:05:09
    Hot fix: The getter 'date' was called on null
  • Урок 44. 00:01:50
    Conclusion & next steps