Rest API Call with http and Provider in Flutter

preview_player
Показать описание
This video is a step by step process of how to integrate http Restful API call using http & provider.
The Provider as a state management notify the data loaded from API and change the flutter UI based on API call result, error or exception.

Reference of the dependencies Used:
- http: (API for HTTP requests)
- provider (A state management solution)
- flutter_spinkit ( Stylish Loading indicators)

GitHub Repository for Source Code Reference:

If you have any doubt, do comment.
If you like this video, hit Like and Subscribe which is free of cost.

Also, you can share this video with others.
This will encourage me to do more videos on whatever topics you want.

Рекомендации по теме
Комментарии
Автор

Bro. Wee need tutorial about provider with changenotifier. Why use provider. Which provider is best. Need basic to advance about provider. Need more than 1hour to clear knowledge about it. I hope you will respond me

Ravikumar-keqi
Автор

how to navigate in different screen if status code give 200 using provider

mohdsaquib
Автор

instead of the second provider you have used inside the widget build can we use consumer widget instead????

MadFroggysTech
Автор

It would be nice if you add a search bar. Thanks

Автор

If you use final before the Return of build, will it Update whole widget when a variable of provider change?

dannyquezada.
Автор

Hi :). I have an issue and any solution, maybe you could help :). I want to display data with clicking a button, my app starts with slider screen and there is a button, in wihich supposed to be list from API, but I have an error: Failed assertion line 870 pos 12 is not true. I want to start my slider screen, then click a button and display list from API. Thanks :).

aleksandraweber
Автор

apiEndpoint in provider is showing error

karansukhani
Автор

Hi. I met another problem :). Your code is working excellent, but I can't find any solution of my next issue, hope you can help me. I display my data in list, it works great, but I need somethnig more. When I click on item in my list, it fetchs data from another endpoint and it's good, but it takes only one element, first index. I need to display every elements with particular id. My questions is: where in code I can define paramaters? Technically I can't do this in get method of http. Where I can define params and search every item with them inside?

aleksandraweber
Автор

ek full project koi real api ka use krke bnaiye sir koi ecommerce app provider k through

Wolff_ryder_vlogs