In this video, Emmanuel Henri demonstrates how to fetch HTTP with the proper library and an example of code.
- [Instructor] As developer, when did you ever need…to fetch data from the Internet?…Almost always.…So knowing how to do this with a flutter application…is definitely important.…Let me show you.…We're not going to fetch data…for this particular application,…but I'm still going to show you how to use the http package,…which is the one that you need to actually fetch data…from the Internet,…and how to write a class with that particular package.…The first thing we need to do is install the package.…So let's go and let's take a look…at what the http package version is.…
Type http inside of the search packages…and you'll find that first package here is http.…And then installing…and then let's copy the version that we have in here.…It might be a little bit different for you, which is fine.…So let's go back to VS Code and then open the pubspec.yaml.…If it's not open, click on Explorer…and then find the pubspec.yaml.…And then let's add that package after path_provider…by pasting what we just copied.…
Let's save that.…And flutter automatically installed that new package.…
- Programming with Dart
- Setting up the Flutter SDK
- Setting up app simulators
- Using Flutter for iOS
- Using Flutter for Android
- Using widgets and material components
- Adding interactivity, routing, and navigation
- Reading and writing with Dart IO
- Creating HTTP requests
Skill Level Beginner
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
1. Introduction and Setup
2. UI Building
3. Use Device and SDK APIs
4. Build and Release
Resources to release to iOS1m 54s
Next steps1m 5s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.