Flutter: REST API Call (HTTP Request) with provider state management in flutter:
This Video provides you step by step process of how to integrate http Restful API call using provider state management. Change State effectively into your flutter app based on API call process and update flutter UI.
Steps to follow:
- Create Model for Json Data
- Convert Json data to Model
- Fetch API from Server
- Initialize model to our Provider
- Use Consumer Widget to Update Data
- Update Data using Provider
- set data from provider model and show Data in UI.
JSON to Dart (Create model from the response): https://javiercbk.github.io/json_to_dart/
Public JSON API: https://api.jikan.moe/v3/search/anime?q=naruto
⭐ Like and subscribe⭐
Any Operating System (ie. MacOS X, Linux, Windows)
Any IDE with Flutter SDK installed (ie. IntelliJ, Android Studio, VSCode etc)
A little knowledge of Dart and Flutter A brain to think
This project is a starting point for a Flutter application. A few resources to get you started if this is your first Flutter project:
Cookbook: Usefull Flutter Demos
For help getting started with Flutter, view our Flutter Document, which offers tutorials, samples, guidance on mobile development, and a full API reference.