Part - 8 | Flutter Get API call with Null Safety || Building List with JSON Data with custom Model

  Рет қаралды 43,257

The Tech Brothers

The Tech Brothers

Күн бұрын

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

Пікірлер: 125
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
source code: github.com/axiftaj/Flutter-Rest-Api-Tutorials-With-Example do give a start if you it helped.
@AIHauntedHorizons-e3g
@AIHauntedHorizons-e3g 2 жыл бұрын
sir aslam o alikum how to fetch data from map in a list then list in a map
@iShahzainAhmed
@iShahzainAhmed Жыл бұрын
Very wonderfully explained sir! Thanks a lot!
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you
@pradhumnamirotha827
@pradhumnamirotha827 2 жыл бұрын
Thanku so much brother you make easy for me ❤️❤️❤️ Please continue like this series
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Glad you like it bro, do share with your friends
@Saansh6462
@Saansh6462 2 жыл бұрын
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?
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
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.
@vishalgarna4580
@vishalgarna4580 11 ай бұрын
Your explanation to good sirji 😊😊
@thetechbrotherss
@thetechbrotherss 11 ай бұрын
thank you
@zaziwrites
@zaziwrites 2 жыл бұрын
Amazing API tutorial, it helped me alot in my projects.
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Glad it helped.
@LearnFlutter
@LearnFlutter 5 ай бұрын
thank you so much to make this video, Allah always keep you happy
@thetechbrotherss
@thetechbrotherss 5 ай бұрын
share with your friends
@codinginflutter1234
@codinginflutter1234 2 жыл бұрын
Sir 💖💖💖 Allah paak apko sehat yaabi wali zindagi dy Ameen💖💖
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Ameen
@AnirudhdhaChothani
@AnirudhdhaChothani Жыл бұрын
Thank you so much brother for mack a easy learning.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
subscribe and share
@shahzadwarraich2911
@shahzadwarraich2911 Жыл бұрын
Amazing playlist for flutter API, Thank you!
@thetechbrotherss
@thetechbrotherss Жыл бұрын
share
@Webdesignanddevelopment
@Webdesignanddevelopment 2 жыл бұрын
Many Many Thanks bro
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
No problem
@abdurrehman6203
@abdurrehman6203 2 жыл бұрын
That's Really helpful , Great Job sir
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you keep watching keep sharing.
@fawadslifestyle4980
@fawadslifestyle4980 4 ай бұрын
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?
@thetechbrotherss
@thetechbrotherss 4 ай бұрын
Oh yes it will still work fine, actually it's returning
@starkstreak5583
@starkstreak5583 2 жыл бұрын
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!),
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
sub kich explain kia ha bro phr sy video dekhain
@techmathwithkafeel1664
@techmathwithkafeel1664 8 ай бұрын
love you sir
@thetechbrotherss
@thetechbrotherss 8 ай бұрын
love you 2
@billionaire_messanger
@billionaire_messanger 2 жыл бұрын
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.
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
please watch the video carefully and check data is parsing to model or not
@moeezahmedkhan
@moeezahmedkhan 4 ай бұрын
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
@thetechbrotherss
@thetechbrotherss 4 ай бұрын
ap na bhi kro tab koi issue ni hoga, but this measn future fucntion ap ko is type ka data return kry ga
@checksum1
@checksum1 2 жыл бұрын
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?
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Ap kr lain depends krta ha develop backend sy response kaisa return krta ha
@sanwald777
@sanwald777 2 жыл бұрын
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?
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
hahahah ni skip ni krna sekho bar bar dekho phr smjh ay ge
@hafizabdulrehman7532
@hafizabdulrehman7532 Жыл бұрын
Great Videos Sir Sir I've a question When we write anything inside what does it mean?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Means in the view
@khubaibirfan9215
@khubaibirfan9215 2 жыл бұрын
Or snapshot.data[index].url or snapshot.requiredData[index].url main kia farq hain?
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
iska mtlb ha k ap array k under 1 parameter ha url k name jo ap access kr rahy ho
@khubaibirfan9215
@khubaibirfan9215 2 жыл бұрын
Photlist.length or snapshot.requiredData.length main kia farq hain?
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
iska mtlb ha ap ki array ki lenght kitne ha
@abhaymaurya8116
@abhaymaurya8116 2 жыл бұрын
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 ..
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
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.
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
And yes see part 10 for better understanding of data manipulating.
@gamesden8021
@gamesden8021 10 ай бұрын
sir yeah method api ko get karna ka jaab hi hoga na jaab jason ma every object ky key values same hongaai
@thetechbrotherss
@thetechbrotherss 10 ай бұрын
apka question smhh ni aya
@vathanachiem9879
@vathanachiem9879 Жыл бұрын
I have problem when get image ( i got the link image but it not show the picture )
@thetechbrotherss
@thetechbrotherss Жыл бұрын
may be the image link is broken but if api data is coming then apis is working fine. replace it with static image
@auliyasstory8316
@auliyasstory8316 11 ай бұрын
is ka fiyada hy ka hum class photos example two ma use karty hy?
@thetechbrotherss
@thetechbrotherss 11 ай бұрын
please watch playlist from start
@maazafridi2090
@maazafridi2090 Жыл бұрын
what is difference between json.decode() vs jsonDecode() ??????????
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Its same
@amitjajoo9510
@amitjajoo9510 2 жыл бұрын
how to create dynamic form in flutter please explain asap
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Everything is explained go ahead please
@meenakshibhasin9456
@meenakshibhasin9456 Жыл бұрын
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.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Didn’t followed your question
@hurbangash1302
@hurbangash1302 2 жыл бұрын
alka za provider use kam sta na ba learn kary provider za problem kho ba na kayi kan?
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
na
@amankhan-de9jd
@amankhan-de9jd 5 ай бұрын
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
@thetechbrotherss
@thetechbrotherss 5 ай бұрын
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
@Nucks17
@Nucks17 Жыл бұрын
Nobody explaining this two things in model apimodel1.fromJson(Map json) { userId = json['userId']; id = json['id']; title = json['title']; body = json['body']; } Map toJson() { final Map data = new Map(); data['userId'] = this.userId; data['id'] = this.id; data['title'] = this.title; data['body'] = this.body; return data; } and and why did we use three time photos photos = photos like why cant we do it like last time list. Add(model(i)). ??? clear why of people thats how we need to learn by the way you are the only great explainer in whole youtube.... thanks
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Already explained please follow the complete playlist.
@amitpersonal6820
@amitpersonal6820 Жыл бұрын
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
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Bro you are doing something wrong please follow the process with. Hundred of students has done this.
@required.
@required. Жыл бұрын
List abc = [ ]; , what does this statement mean? , I am asking from previous video .
@thetechbrotherss
@thetechbrotherss Жыл бұрын
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.
@wahabrider9842
@wahabrider9842 Жыл бұрын
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
@thetechbrotherss
@thetechbrotherss Жыл бұрын
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
@wahabrider9842
@wahabrider9842 Жыл бұрын
@@thetechbrotherss bhia postman me responce a rha ha lekin print(‘data’) run kia lekin kio responce nhi aya
@sakshim4640
@sakshim4640 Жыл бұрын
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
@thetechbrotherss
@thetechbrotherss Жыл бұрын
it means value are coming null, add .tostring to end and see how it works else handle null exceptions
@Ritik-lv2gg
@Ritik-lv2gg 3 ай бұрын
Sir ye image render nahi ho rahi hai circle avatar me please tell me how to do it
@thetechbrotherss
@thetechbrotherss 3 ай бұрын
Yeah image he aise ha use other link
@Ritik-lv2gg
@Ritik-lv2gg 3 ай бұрын
@@thetechbrotherss okk thank you ❤️
@Sanahashmi5363
@Sanahashmi5363 Жыл бұрын
model.fromJson kesy hoga is mn?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Watch full playlist we have covered every scenarios
@Nucks17
@Nucks17 Жыл бұрын
how does print work in your Furure mehod bro.!!???
@thetechbrotherss
@thetechbrotherss Жыл бұрын
What do you mean ?
@Nucks17
@Nucks17 Жыл бұрын
@@thetechbrotherss can we use print function except void function ??? bcoz i was unable to fetch data with print on my debug cosole in future Fucntion it says need to return something
@romzanali9930
@romzanali9930 Жыл бұрын
nice explanation
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you
@auliyasstory8316
@auliyasstory8316 11 ай бұрын
async snapshot list q use kiya ya ks liya use kiya ?
@thetechbrotherss
@thetechbrotherss 11 ай бұрын
to get the value of future builder
@ahsunhabib6584
@ahsunhabib6584 Жыл бұрын
Nice tutorial
@thetechbrotherss
@thetechbrotherss Жыл бұрын
thank you
@kmailabbas5000
@kmailabbas5000 Жыл бұрын
sir aap ke har vedio ma awaz bohot slow hoti hai
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Yar ap thora on kr lo i think slow ni ha this is the first comment jo voice ka keh raha ha
@CodeWithMaya07
@CodeWithMaya07 2 жыл бұрын
Can you add English subtitles
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Ok
@medhavisharma1317
@medhavisharma1317 Жыл бұрын
gooood
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you
@flutterteam01
@flutterteam01 Жыл бұрын
bhai interview ke quotations ka tutorial leke aooo.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
ok
@medhavisharma1429
@medhavisharma1429 Жыл бұрын
amazing
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you! Cheers!
@--Manoj007
@--Manoj007 Жыл бұрын
Write the code in the neat manner
@thetechbrotherss
@thetechbrotherss Жыл бұрын
for cleaner code, check my mvvm and mvc courses. This playlist is entirely design to teach ABC of APIs
@dharmikvora2211
@dharmikvora2211 Жыл бұрын
Maine sem code likha par Mera api phone Mai data show nahi ho raha hai
@dharmikvora2211
@dharmikvora2211 Жыл бұрын
Postman Mai api chal raha hai Code 2 bar check Kiya sem hai
@thetechbrotherss
@thetechbrotherss Жыл бұрын
bhai print snapshot and check exceptions
@Kitty1cat
@Kitty1cat 2 ай бұрын
Sir baqi sub tik hai lekin ye CircleAvatar mai color same hai 😂😂😂😂?
@thetechbrotherss
@thetechbrotherss 2 ай бұрын
hahhahahah koi bat learn the concepts and study api response
@Kitty1cat
@Kitty1cat 2 ай бұрын
@@thetechbrotherss Ok
@waleedasghar1834
@waleedasghar1834 Жыл бұрын
for(Map i in data){ postList.add(PostModel.fromJson(i)); } Sir i have problem in PostModel.fromJson(i);
@thetechbrotherss
@thetechbrotherss Жыл бұрын
whats the problem ?
@Hamza-dw4iw
@Hamza-dw4iw Жыл бұрын
What does map i in data means?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
maps the value into our model
@Hamza-dw4iw
@Hamza-dw4iw Жыл бұрын
thank you@@thetechbrotherss
@devmarwat
@devmarwat 2 жыл бұрын
Sir Video Quality is too low to watch
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
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.
@muhammadalimirza4182
@muhammadalimirza4182 2 жыл бұрын
Network image load nahi ho rahi
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Images apni add kr lo path ma
@humayunmajeed_0378
@humayunmajeed_0378 2 жыл бұрын
koi solution mila tha iska?
@reelsmahic999
@reelsmahic999 Жыл бұрын
Same here, status code 403
@ShadabKhan-ib7me
@ShadabKhan-ib7me Жыл бұрын
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Hello
@Quotasticmind3157
@Quotasticmind3157 Жыл бұрын
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
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Bro mainy bht detail ma explain kia ha part 6 part 11 tak please follow the playlist to clear your concepts once for all
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 60 МЛН
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 10 МЛН
REST Call with Flutter - Http methods
19:55
CodeX
Рет қаралды 71 М.
REST API with GetX | Flutter tutorial | Shopping app
26:43
Get data from Api in flutter - HTTP Requests in flutter
15:00
Flutter With Me
Рет қаралды 137 М.
Display Data From a JSON in Flutter
7:11
Programming Addict
Рет қаралды 124 М.