Part - 8 | Flutter Get API call with Null Safety || Building List with JSON Data with custom Model
Вставка
- Опубліковано 16 січ 2025
- In this video i will teach you how we can build list with json data using future builder. We will also discuss nature of APIS response and how then we can create our own custom model to fetch data from server and show it in APP.
► API Link ➜ jsonplaceholde...
source code: github.com/axi...
► PlayList ➜ • Flutter REST API Tutor...
► Join Facebook Group ➜ / 983554978866765
_____________/Connect On Social Media\____________
► linkedin:➜ / axiftaj
► Instagram:➜ / axif_taj
► Facebook:➜ / aaxiftaj
► Twitter:➜ / axiftaj
► GitHub:➜ github.com/axi...
► Hire me on Fiver:➜ www.fiverr.com...
=========================================
► Flutter Blog App Playlist: • Flutter Blog App with ...
► How to capture image from camera in flutter:
► Link : • How to capture Image f...
► My Card App Flutter :
► User Circular Avatar Part 1 : • My Card App || Flutter...
► Use fonts in flutter Part 2 : • My Card App || Flutter...
► Final Part 3 : • My Card App || Flutter...
►Covid-19 Tracker App using Rest API's :
• Create Coronavirus (CO...
►Firebase Blog App Android Java:
• Firebase Blog App - Ho...
►C++ Tutorials :
• C++ Programming Tutori... .
rest apis,flutter get api call with null safety, building list with JSON data, future builder, flutter rest api tutorials crash course,
For business queries : axiftaj@gmail.com
Thank you for watching my channel do give feedback about this video.
#flutter #fluttertutorial #form #components #flutter #asiftajtech
source code:
github.com/axiftaj/Flutter-Rest-Api-Tutorials-With-Example
do give a start if you it helped.
sir aslam o alikum how to fetch data from map in a list then list in a map
Your explanation to good sirji 😊😊
thank you
Very wonderfully explained sir! Thanks a lot!
Thank you
Sir 💖💖💖 Allah paak apko sehat yaabi wali zindagi dy Ameen💖💖
Ameen
Thanku so much brother you make easy for me ❤️❤️❤️
Please continue like this series
Glad you like it bro, do share with your friends
Amazing API tutorial, it helped me alot in my projects.
Glad it helped.
What was the purpose of AsyncSnapshot at 15:40
Because my code runs perfectly without it? I want to know why did you used that for?
Oh yes it will still work fine, actually it's returning
thank you so much to make this video, Allah always keep you happy
share with your friends
Thanks again ..... yes it helped me a lot and give me better understanding how future builder, model, future function. list, expanded working ... you define well.
a thing i want to know that ... here you add Asyn snapshot .... and then use snapshot with index to show data ... in replacement of list object .. why?
I think pass the model just to get the entities of the model. If i don't passed it then it wont't give me automatic hints of my parameters.
Thank you so much brother for mack a easy learning.
subscribe and share
Amazing playlist for flutter API, Thank you!
share
sir pichli video ki treh normally access kyu nahi kia data?..assync snap ke bina bhi ho sakta hai na..jaise pichili video me kia tha..??
if (!snapshot.hasData) {
return Text('loading..');
} else {
return ListView.builder(
itemCount: getlist.length,
itemBuilder: (context, index) {
return ListTile(
title: Text(getlist[index].title!),
sub kich explain kia ha bro phr sy video dekhain
Hi sir i hope you will be fine sir i created model but the data is showing in terminal not on the device the device only show circularprogressindicator.
please watch the video carefully and check data is parsing to model or not
Assalam o Alaikum 8 34 pa ap var data mein jb decode kr rhy hein to if statement ki body k andr kyun nhi decode kr rhy?
Ap kr lain depends krta ha develop backend sy response kaisa return krta ha
That's Really helpful , Great Job sir
Thank you keep watching keep sharing.
I have problem when get image ( i got the link image but it not show the picture )
may be the image link is broken but if api data is coming then apis is working fine. replace it with static image
is ka fiyada hy ka hum class photos example two ma use karty hy?
please watch playlist from start
Sir:
FutureBuilder me builder wali property me apne AsyncSnapshot ye kiu use kia and
Jab hamare pass data already List k andr tha tu apne snapshot.data![index].title.toString() ese kiu kia.
ap direct ese bhi tu likh sakhte the photoList[index].title.toString().
Kindly ye confusion clear krden Jazakallah
ap na bhi kro tab koi issue ni hoga, but this measn future fucntion ap ko is type ka data return kry ga
alka za provider use kam sta na ba learn kary provider za problem kho ba na kayi kan?
na
Photlist.length or snapshot.requiredData.length main kia farq hain?
iska mtlb ha ap ki array ki lenght kitne ha
Many Many Thanks bro
No problem
YEH DIFFICULT LAG RHI HAI SERIES.
IS IT POSSIBLE K ISKO SKIP KR DYN? OR JO APKI NEXT VIDEOS HAIN WOH WATCH KR LYN. FLUTTER 2022 KI?
hahahah ni skip ni krna sekho bar bar dekho phr smjh ay ge
how to create dynamic form in flutter please explain asap
Everything is explained go ahead please
ager kisi api mai start jo hai wo array sai nahi hai wo object sai start horaha hai or us kai ander nested array bhi hai or nested objects bhi hai us ko kaisai handle karai gai is tariqai ki api bhot complex hoti hai
Nice question, jaise ap ny abhi object ki class create kia ha
waise he ab my nested array ki class create kro with from json and to json function
sir yeah method api ko get karna ka jaab hi hoga na jaab jason ma every object ky key values same hongaai
apka question smhh ni aya
Sir ye image render nahi ho rahi hai circle avatar me please tell me how to do it
Yeah image he aise ha use other link
@@thetechbrotherss okk thank you ❤️
nice explanation
Thank you
Or snapshot.data[index].url or snapshot.requiredData[index].url main kia farq hain?
iska mtlb ha k ap array k under 1 parameter ha url k name jo ap access kr rahy ho
what is difference between json.decode() vs jsonDecode() ??????????
Its same
AOA BHIA .. mne same to same code likha but sirf app bar build ho rha lkein future function nhi chl rha mean kch show nhi kr rha
Check api in postman if its working or not. Print snapshots for error if api is working than it’s mean your data is not parson to model
@@thetechbrotherss bhia postman me responce a rha ha lekin print(‘data’) run kia lekin kio responce nhi aya
async snapshot list q use kiya ya ks liya use kiya ?
to get the value of future builder
Actually i have a value of data type double but i am not able to show it, when i try to do it is showing me null error
it means value are coming null, add .tostring to end and see how it works else handle null exceptions
Hi sir i have another question. Do you have any video in which we are passing json data from parent to child or vice versa.It will help me alot. I am not understanding how to proceed.
Didn’t followed your question
model.fromJson kesy hoga is mn?
Watch full playlist we have covered every scenarios
Hi asif kya aap bta skte hai multi select data apis ke through keise get kre aur use keise post kr skte .... Mujhe aap ka tarika aacha laga jis type se aat chhote chhote apis ke cheejo ko video me smjhaya maja aa gya ..i hope aage ke video me aap post method ke bare me btaye ..aur thoda jaldi video daale kyuki koi aacha sikhadata hai to maja aata hai sikhne me ..
Hi abbay, thank you. Post Methods API are already uploaded. Ap agy is playlist ma dekh skty ha. Sorry videos ni post kr pa raha I caught high fever and it has been 2 weeks i didn't recovered.
And yes see part 10 for better understanding of data manipulating.
love you sir
love you 2
Nice tutorial
thank you
Great Videos Sir
Sir I've a question
When we write anything inside what does it mean?
Means in the view
Why is it not showing images?
check image path in postman
What does map i in data means?
maps the value into our model
thank you@@thetechbrotherss
Maine sem code likha par Mera api phone Mai data show nahi ho raha hai
Postman Mai api chal raha hai
Code 2 bar check Kiya sem hai
bhai print snapshot and check exceptions
List abc = [ ]; , what does this statement mean? , I am asking from previous video .
Means to store the the data in a list with models. List is just a list and then model parse the objects value inside the list. Model helps to parse the data.
Brother this code is not working again
If we
Pass in for loop
for( map I in data){
PhotosList.add(Photos.fromjson(i));
)
Text(PhotosList[index].title,)
Kare tab pass hota h
Brother
Ye second tarike se data pass karne wala dikhao again
Jisme aap snapshot se title or photos ko lekar aa rhe ho
Bro you are doing something wrong please follow the process with. Hundred of students has done this.
Network image load nahi ho rahi
Images apni add kr lo path ma
koi solution mila tha iska?
Same here, status code 403
amazing
Thank you! Cheers!
gooood
Thank you
Can you add English subtitles
Ok
bhai interview ke quotations ka tutorial leke aooo.
ok
sir aap ke har vedio ma awaz bohot slow hoti hai
Yar ap thora on kr lo i think slow ni ha this is the first comment jo voice ka keh raha ha
Sir baqi sub tik hai lekin ye CircleAvatar mai color same hai 😂😂😂😂?
hahhahahah koi bat learn the concepts and study api response
@@thetechbrotherss
Ok
Sir Video Quality is too low to watch
Actually software was processing the HD version of video and i make it public before hd version got processed, now this issue is resolved. Do subscribe and keep sharing keep watching.
Write the code in the neat manner
for cleaner code, check my mvvm and mvc courses.
This playlist is entirely design to teach ABC of APIs
Hello
for(Map i in data){
postList.add(PostModel.fromJson(i));
}
Sir i have problem in PostModel.fromJson(i);
whats the problem ?
Sir hm ye model plugin pe kio nhi kerte post wala Api our ye photos wala Api same hain agar nhi hota to hamain kese pata chale ga ke is ko custom model bnainge our us ko json to dart wala plugin wala pe banainge
Bro mainy bht detail ma explain kia ha part 6 part 11 tak please follow the playlist to clear your concepts once for all