Part - 11 | Building List with Complex Very JSON Data || Flutter Get API Call with null safety

preview_player
Показать описание
In this video i will teach you how we can parse complex JSON data to model and then build the list.

______________/Connect On Social Media\_____________
=========================================

How to capture image from camera in flutter:

My Card App Flutter :

rest apis,flutter get api call with null safety, building list with JSON data, future builder, flutter rest api tutorials crash course,

Thank you for watching my channel do give feedback about this video.

#flutter #fluttertutorial #form #components #flutter #asiftajtech
Рекомендации по теме
Комментарии
Автор

Please Use this response and create your own api like i do to follow the tutorial along side with me. Create your own api and and use it.
json Response:

{
"success" : true,
"message" : "All data",
"data" : [
{
"_id" : "asdf231asdfadsfsad2438rjsd",
"on_sale" : true,
"sale_percent" : 20,
"sold" : 20,
"slider_new" : false,
"slider_recent" : false,
"slider_sold" : false,
"date" : "2023-01-05T07: 56: 19.219Z",
"title" :"TMTS121-50199",
"categories" : {
"_id" : "asdf231asdfadsfsad2438rjsd",
"type" : "Women",
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z",
"name" : "clothes",
"image" : "https:
},
"subcat" : {
"_id" : "asdf231asdfadsfsad2438rjsd",
"type" : "Women",
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z",
"name" :"Shirts"
},
"shop" : {
"_id" : "asdf231asdfadsfsad2438rjsd",
"is_active" : false,
"created_At" : "2023-01-05T07: 56: 19.219Z",
"name" :"Shirts",
"description" : "This is enderobe brand",
"shopaddress" : "Islamabad F8",
"shopcity" : "Islamabad",
"userid" : "23asdfasfdsfd",
},
"price" : "2500",
"sale_title" : "Winter Sale",
"sale_price" : "2300",
"description" : "22% off all the sales ",
"color" : "#FF6347, #CD5C5C",
"size" : "S, M, L, XL, XXL",
"in_wishlist" : true,
"images" : [
{
"id" : "2342asdfasdf34",
},
{
"id" : "2342asdfasdf34",
},
{
"id" : "2342asdfasdf34",
}
]

},
{
"_id" : "asdf231asdfadsfsad2438rjsd",
"on_sale" : true,
"sale_percent" : 20,
"sold" : 20,
"slider_new" : false,
"slider_recent" : false,
"slider_sold" : false,
"date" : "2023-01-05T07: 56: 19.219Z",
"title" :"TMTS121-50199",
"categories" : {
"_id" : "asdf231asdfadsfsad2438rjsd",
"type" : "Women",
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z",
"name" : "clothes",
"image" : "https:
},
"subcat" : {
"_id" : "asdf231asdfadsfsad2438rjsd",
"type" : "Women",
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z",
"name" :"Shirts"
},
"shop" : {
"_id" : "asdf231asdfadsfsad2438rjsd",
"is_active" : false,
"created_At" : "2023-01-05T07: 56: 19.219Z",
"name" :"Shirts",
"description" : "This is enderobe brand",
"shopaddress" : "Islamabad F8",
"shopcity" : "Islamabad",
"userid" : "23asdfasfdsfd",
},
"price" : "2500",
"sale_title" : "Winter Sale",
"sale_price" : "2300",
"description" : "22% off all the sales ",
"color" : "#FF6347, #CD5C5C",
"size" : "S, M, L, XL, XXL",
"in_wishlist" : true,
"images" : [
{
"id" : "2342asdfasdf34",
},
{
"id" : "2342asdfasdf34",
},
{
"id" : "2342asdfasdf34",
}
]

},
{
"_id" : "asdf231asdfadsfsad2438rjsd",
"on_sale" : true,
"sale_percent" : 20,
"sold" : 20,
"slider_new" : false,
"slider_recent" : false,
"slider_sold" : false,
"date" : "2023-01-05T07: 56: 19.219Z",
"title" :"TMTS121-50199",
"categories" : {
"_id" : "asdf231asdfadsfsad2438rjsd",
"type" : "Women",
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z",
"name" : "clothes",
"image" : "https:
},
"subcat" : {
"_id" : "asdf231asdfadsfsad2438rjsd",
"type" : "Women",
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z",
"name" :"Shirts"
},
"shop" : {
"_id" : "asdf231asdfadsfsad2438rjsd",
"is_active" : false,
"created_At" : "2023-01-05T07: 56: 19.219Z",
"name" :"Shirts",
"description" : "This is enderobe brand",
"shopaddress" : "Islamabad F8",
"shopcity" : "Islamabad",
"userid" : "23asdfasfdsfd",
},
"price" : "2500",
"sale_title" : "Winter Sale",
"sale_price" : "2300",
"description" : "22% off all the sales ",
"color" : "#FF6347, #CD5C5C",
"size" : "S, M, L, XL, XXL",
"in_wishlist" : true,
"images" : [
{
"id" : "2342asdfasdf34",
},
{
"id" : "2342asdfasdf34",
},
{
"id" : "2342asdfasdf34",
}
]

}
]
}

thetechbrotherss
Автор

My past 5 days were full of productivity, just because of your getx playlist and api playlist. You are worth it man

apsian
Автор

You saved my job brother.. very helpful playlist for me. i was totally null about api. but after completing your series - now its just like drinking water. Thank you. May Allah Bless you

abdulkaderhridoy
Автор

This is a "one of a kind" tutorial series. Your teaching style matches with me about 90 percent. CHEERS!! to you Asif . and my sincerest and Utmost gratitude to you.🤩

vivekjunghamal
Автор

Alhamdulillah, I was able to code the logic of this video on my own, thanks to your excellent teaching style. Your guidance helped me to grasp the concepts and apply them effectively.
Jazak-ALLAH

ghayoorhussain
Автор

Thank you so very much.. I'm really thankful to you for the efforts that you put into teaching us, you're the best of all teachers. May Allah reward you in this world and in hereafter ❤️

AmirKhan-dcte
Автор

Your tutorial make me able to pass my first Interview in peshawar IT part .thank You Mr Asif Taj 🙏🙏🙏🙏🙏

politicaldrama
Автор

JazakAllah ... great video tutorial that how to handle complex json data and building list with very very and very easy way .... for newer in flutter must following his video ....

Saansh
Автор

That's very high level knowledge you are providing

vivekprasad
Автор

sir one time you check it not work i do everything like check api response it come, but image[id, url] there promblem, sir please one time check that sir, i am waiting your reply sir

ironmans
Автор

Hello sir in your video when you build a future builder widget and use if else condition for snapshot and then return listview builder and after that you will return column and etc . the point is you dont return value to future builder and you face no error but in my project this null safty error occurs and when i return value in end then they dont show me data. what is the solution? BTW every thing clear.

tayyabashfaq
Автор

Thank You Sir. You are fantastic. may Allah bliss you with what you have wished for.❤

adilafridi
Автор

Very helpful Playlist for beginners ✌️☺️

niamatiqbal
Автор

Very informative playlist. keep it up man (Y)

rafhanchaudhary
Автор

Hello,
Why am I getting such an error in the application screen? (type list dynamic is not a subtype of type map string dynamic), Thank you.

mekacandle
Автор

Hi, thanks for your video. But my doubt is the API URL is not working for me. Can u please help me out with this.

pranjalmehrotra
Автор

Facing error while fetching image.
image: image![position].url),
Error the getter url isn't defined for the class string

ukashaanwar
Автор

Sir the problem here we have json that return 1 data so when I am trying like to find images it is impossible because they are under products please I am lost

byiringirooscar
Автор

Thanks for this tutorial Is se Mari boht help hui he mene flutter to seekha but api Samaj nhi arahi thi aj muje sab kuch Samaj agaya thanks alot sir g

codeandtraveling
Автор

thanks bro your tutorial really help a loT please upload more content 😇

himank