0:00 / 0:00
Flutter Make HTTP Request and Load JSON in ListView
Coffee Bytez
1.1K subscribers • 2 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Linked in the descriptioncmcoffee91/starwarsflutter
- May be out of date. The tools, versions or practices it shows have likely moved on.
Beginner. No background in the topic needed.
2.3K views6 years ago1 recommendation
Mobile developmentFlutter and React NativeHTTP, REST and GraphQL
How to make HTTP requests to the Star Wars API and load JSON data into a ListView in Flutter.
In this tutorial, I'll show you how to make a Star Wars app using flutter and SWAPI(Star Wars API). Excuse my fatigue in this video. Join the Coffee Bytez Patreon for exclusive content: patreon.com/coffeebytez Substack: coffeebytez.substack.com/ Medium: medium.com/@coffeebytez Discord: discord.gg/xQFhrHRz SWAPI link: swapi.dev/documentation#people SWAPI JSON endpoint: swapi.dev/api/people/?format=json Flutter docs to parse JSON: flutter.dev/docs/cookbook/networking/background-parsing JSON Lint: jsonlint.com/ Source Code: github.com/cmcoffee91/starwarsflutter 📖 Chapters: - Introduction to Flutter Project & Star Wars API - Exploring SWAPI Documentation and People Endpoint - Setting Up Flutter Project in Android Studio & Initial Run - Researching JSON Loading in Flutter Documentation - Adding HTTP Package Dependency to pubspec.yaml - Refactoring Code: Moving MyHomePage to a Separate File - Reviewing Network Request & JSON Parsing from Flutter Docs - Implementing fetchPeople Function for SWAPI Data - Setting Up FutureBuilder for Asynchronous Data Display - Displaying Star Wars Character Names in a ListView - Using JSONLint for Better JSON Readability - Refining ListView to Extract Data from 'results' Object - Displaying List of Character Names (Initial UI) - Troubleshooting FutureBuilder Type Mismatch Error - Enhancing UI with ListTile for Names and Birth Years - Conclusion and Preview of Future ImprovementsWhy it's here
1 person recommends thisWhat people say. Recommended as a tutorial for fetching and parsing JSON data in Flutter.