Fetching Data from API | Part - 2 | HTTP get Request in Flutter | Hindi

preview_player
Показать описание
To fetch data from an API in a Flutter app, you can use the http package, which provides a simple and efficient way to make HTTP requests and receive HTTP responses.

Here is an example of how you might use the http package to fetch data from an API in a Flutter app:

// Make a GET request to the API

// Check the status code of the response
// If the request was successful, parse the JSON data
// Use the data as needed
} else {
// If the request was unsuccessful, throw an error
throw Exception('Failed to fetch data');
}

My YouTube Gear:

#ahirlog #flutter #dart

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

The way of your explaination, was really great as usual. Thanks a lot brother.

avilashbhowmik
Автор

My friend Axit kapadiya is only depended on your you tube channel

vinit_
Автор

great video bro i got errors in my code but after watching this video .I have solve errors in my code thanks you bro .

aakashgaming
Автор

yeh same apan Provider se bhi kar sakte hai instead of listviewbuilder

right?

Second_zoneHandler
Автор

hello bhai,
thanks for this video the way of explaining is very easy to understanding and good and expecting more API's like post, put patch method. it's really appreciate thanks.

Anillucky
Автор

Plz make a view of API Post Method ....Boht acha samjty ho bhai ap ...Love from Pakistan

hassamkayani
Автор

thank you very much ahirlog this video

FunGamerz-
Автор

please make a video on post and put and delete method of http for api

shivamnexvlogs
Автор

how to add webview inside a button .

when i click that button it open webview

hisamsikder
Автор

exact the same code but circle is rotation all the time

akme
Автор

Type error string dynamic is not a sub type of type itrable<dynamic> bro pls solve

ankitnagar
Автор

hey bro i found this error while fetching data, will you please help me to fix this error
_TypeError (type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Iterable<dynamic>')

shortcasthub
Автор

Iam getting errors In home_page.dart, how can i modifying

mekaamrutha
Автор

here you are showing data from jsonarray, please can you help me to get jsonobject from api by button click and show in text widget ?

BasantKumar-bgfg
Автор

I want to fetch questions an answers from stackoverflow could you please guide

kainatnaeem
Автор

how to fetch nested api its difficult bro please reply

dushyantsharma
Автор

SIr aapka contact detail share karo na

snehdeepukey
Автор

http pakage ki jagh dio use karna kesa

parvejchhipa
Автор

bhai awaaz badhao sunai he nahi deti aap ki awaaz

vickramkumar
Автор

Type error string dynamic is not a sub type of type itrable<dynamic> bro pls solve

soulmate