Part - 7 | Flutter Get API call with Null Safety | Building List with JSON Data using Future Builder

  Рет қаралды 76,256

The Tech Brothers

The Tech Brothers

Күн бұрын

Пікірлер: 311
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
source code: github.com/axiftaj/Flutter-Rest-Api-Tutorials-With-Example do give a start if you it helped.
@azeemhussain1109
@azeemhussain1109 2 жыл бұрын
already given you star and shared with friends, wish you, to get more stars. amazing tutorials series
@muhammadhassan4289
@muhammadhassan4289 Жыл бұрын
for those people who are facing issue in map function in for loop, map function is a little bit modified so here is the code that u have to copy paste for (Map i in data) { postList.add(PostsModel.fromJson(i)); }
@thetechbrotherss
@thetechbrotherss Жыл бұрын
It's not necessary , it will work the way i taught them but most of the student didn't follow carefully that's why they faced isssues
@noumaniqbal4965
@noumaniqbal4965 Жыл бұрын
Yes you are right. I face this problem for one whole day.
@noumaniqbal4965
@noumaniqbal4965 Жыл бұрын
@@thetechbrotherss Sir he says right.
@sufyantalib8289
@sufyantalib8289 Жыл бұрын
Thanks for helping
@shahzadwarraich2911
@shahzadwarraich2911 Жыл бұрын
I was also facing that issue thanks for sharing
@CoderUmar-hw6ef
@CoderUmar-hw6ef 3 ай бұрын
Appreciate your Sophistication of HardWork for Public 😍
@thetechbrotherss
@thetechbrotherss 3 ай бұрын
Thank you so much 😀
@cs_010_adityaverma2
@cs_010_adityaverma2 Жыл бұрын
struggling from past 4 days with APIs integration now finally understand it very well ........love from INDIA sir
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Share with your friends
@krutidewda3152
@krutidewda3152 Жыл бұрын
You deserve millions of subscriber sirr, jus t love how you explained APIs so easily, I was finding it difficult to understand from a very long time
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Share with your friends
@vishnuprajapati89
@vishnuprajapati89 2 жыл бұрын
Dhanyawad bro. Yadi apke jese guru ho sikhane ko to kisi ko koi doubt nahi rahega and again thanks bro...❤️
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you subscribe kr dain share kr dain doston k sath
@AmeerHamza-vd9sb
@AmeerHamza-vd9sb Жыл бұрын
1st time I feel like APi's are easy to integrate ❤️ big respect for you!
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Share with your friends
@sumitkumar-jn8he
@sumitkumar-jn8he 3 жыл бұрын
Sir one by one tut dekha bhaut ache se apne explained kiya hai. Eager for next continue tut video post.
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
Hopefully we will cover this series this week.
@praveensuthar3036
@praveensuthar3036 2 жыл бұрын
Thanks you sir muje bohot kuch sikhne ko mila muje bohot problem hoti jab api call karta tha par ab muje dout clear hogye Thanks
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Great it helped, do subscribe, like the video and share it with your friends.
@codeWithSanny
@codeWithSanny Жыл бұрын
The explanation was awosome. I would never need to ask Google for the materials you have covered in the lecture... Love from Flutter Interns : )
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you sir
@sanjaypatidar7605
@sanjaypatidar7605 2 жыл бұрын
sir proper smj aaya best tutorial sir ji👍👍😊 i'm from india ❤
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
mazy kro
@syedshabbarraza6384
@syedshabbarraza6384 3 ай бұрын
JAZAKAllah sir aaj bhi aap ki waja sy kuch new sekhny ko mila
@thetechbrotherss
@thetechbrotherss 3 ай бұрын
glad to hear this
@Himanshu_Explore
@Himanshu_Explore 2 жыл бұрын
Wow sir thankyou so much fir this! I need this kind of tutorial thankyou sir 🙂love from india💌
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you pleas share with your friends
@happycoding7079
@happycoding7079 2 жыл бұрын
Thanks, Buddy finally Caught all the concepts till here IDK why but I took 5 retakes then I got it
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
hahahahhah this is experience, support me on insta: instagram.com/thetechbrotherss/
@muhammadhanif1636
@muhammadhanif1636 2 жыл бұрын
best tutorial I have seen in youtube
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you
@amitpersonal6820
@amitpersonal6820 Жыл бұрын
If anyone have error in for loop Use for (map i in data)
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Sahi ho gya to comment ko update kr dain
@starkstreak5583
@starkstreak5583 2 жыл бұрын
very nice and easy explanation sir
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you do share with your friends
@nouman1213
@nouman1213 3 жыл бұрын
explained very well... wait for next video
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
Will upload very soon. Hopefully will complete this series this week.
@ramzanch4055
@ramzanch4055 2 жыл бұрын
Bro v nice keep it up i follow your play list and learn a lot about api and abele to integrate api in my freelance projects.
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Glad to hear that, so subscribe and share with your friend.
@ramzanch4055
@ramzanch4055 2 жыл бұрын
@@thetechbrotherss sure sir
@iShahzainAhmed
@iShahzainAhmed 2 жыл бұрын
Sir you explained everything very greatly in this video, but I don't know why this entire concept of creating List and FutureBuilder seemed very difficult to me, or maybe I need to watch it multiple times to understand it properly.
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
First time it's always difficult with practice and as you move forward it will be very easy
@iShahzainAhmed
@iShahzainAhmed 2 жыл бұрын
@@thetechbrotherss In Shaa Allah sir I'll try practicing it!
@preetiahuja8672
@preetiahuja8672 Жыл бұрын
Crystal Clear explaination.thank you sirr :)
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Go ahead you will love it, make sure to read the description and first comment. Do subscribe and share with your friends
@kamalmaher9920
@kamalmaher9920 Жыл бұрын
sir when we started the loop for (map i in data){ postlist.add(postmodel.formjson(i)); } in this code the i is not working in fromjson code. it through the error and not working.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Check you must he doing something wrong
@ashhadahmed72
@ashhadahmed72 3 ай бұрын
for those people who are facing issue in map function in for loop, map function is a little bit modified so here is the code that u have to copy paste for (Map i in data) { postList.add(PostsModel.fromJson(i)); }
@shivanisoni9803
@shivanisoni9803 2 жыл бұрын
excellent video. very nice explanation
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
thank you do subscribe and share with your friends
@batishqureshi
@batishqureshi 2 жыл бұрын
Amazing video brother! Keep it up!
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you subscribe
@wasimzaman674
@wasimzaman674 Жыл бұрын
Assalam O Alekum..... Jesa k aap ne kaha k agar post API ka jo response hai agar us mai se list yani k array ka naam hota to hamara model achay se ban jaata, kya model ko sahi tarah se banane k liye hum us response ko explicitly change nahi kar saktay ? kya hum is pooray response ko object mai wrap kar k is list ko naam nahi de saktay?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
JSON response backend engineer bnata ha ap usko jaise kahin gy wo set kr dy ga r ap easyly handle kr lain
@Gulfam-b2f
@Gulfam-b2f 6 ай бұрын
very well explained
@thetechbrotherss
@thetechbrotherss 6 ай бұрын
Thanks for liking
@TheHospitalityEmpire
@TheHospitalityEmpire 2 жыл бұрын
The argument type 'Map' can't be assigned to the parameter type 'Map' this erroe showing up when doing step you did at 12:02 min in video
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Error is self explanatory click on this error go to the model and change string to dynamic and please watch video carefully till end.
@rehanhamayun1353
@rehanhamayun1353 2 жыл бұрын
Change the Map to "Map
@allinonewithSnehaa
@allinonewithSnehaa Жыл бұрын
I Love your video great work sir ❤
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Share within your circle
@demodemo9429
@demodemo9429 2 жыл бұрын
Great explanation sir 👍👍👍
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you please share with in your circle.
@kirticabhandari623
@kirticabhandari623 2 жыл бұрын
I have a question.. please give me reply. Why we are creating model for JSON? I don't understand, why it is need?
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
To parse data and show them on front end
@kirticabhandari623
@kirticabhandari623 2 жыл бұрын
@@thetechbrotherss ok.thanks
@inoxentmuqeet6727
@inoxentmuqeet6727 Жыл бұрын
End level 💯
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Subscribe
@zoshypermar
@zoshypermar 2 жыл бұрын
Excellent Sir ! Sir tell me command in android studio for wrap with widgets. What command you type for wrap with widgets? Here control+ Enter not working for wrap with widgets
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Btaie ro ha alr + shift
@zoshypermar
@zoshypermar 2 жыл бұрын
@@thetechbrotherss Alt+Enter se huwa thanks Sir..
@tusharprajapati6431
@tusharprajapati6431 2 жыл бұрын
bro love from india
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Glad you liked it bro, do share with your friends.
@tusharprajapati6431
@tusharprajapati6431 2 жыл бұрын
Apko bolne ki zaroorat nhi hai phele hi krdia yeh sab
@tusharprajapati6431
@tusharprajapati6431 2 жыл бұрын
Apki instagram I'd kiya hai ?
@Kumar2k12
@Kumar2k12 2 жыл бұрын
I am subscribed to utr videos. Please explain How to use JsonToDart using android studio build json model
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
please watch part 5 and 6 i teach how you can do that
@Kumar2k12
@Kumar2k12 2 жыл бұрын
@@thetechbrotherss Yes Thank you for that and I have watched it , but in settings of jsonToDart which to be preffered. It is very canfusing as I have tried it.
@ayushmishra8505
@ayushmishra8505 Жыл бұрын
Not working - 14:58 when you print postList length in list view I write exact same code but my phone screen is empty not getting any data in listview. Try everything.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
test api in postman and then follow the process carefully
@ayushmishra8505
@ayushmishra8505 Жыл бұрын
@@thetechbrotherss Already didi it API works well in postman
@hammadahmad7963
@hammadahmad7963 Жыл бұрын
Sir I got error in postList.add(PostModel.fromJson(i)); in (i)
@thetechbrotherss
@thetechbrotherss Жыл бұрын
share the error
@taimoormanzoor7386
@taimoormanzoor7386 2 жыл бұрын
Sir can tell me what the difference between if I use that "AsyncSnapshot snapshot" or only "snapshot"?
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
List is returning list data in async you can define whatever the data type returning it could be bool, i suggest you watch my widget of the week series for better understanding of future and stream builder with snapshot. do subscribe and share with your friends. support me on insta: instagram.com/thetechbrotherss/
@sk10120
@sk10120 Жыл бұрын
can you please explain the use of postList.clear() that you added ?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
It clear the data to avoid duplicating the data
@SarimAli-k7g
@SarimAli-k7g Жыл бұрын
so hamein pehle api se model nikalna hoga postman se, and than usko convert krna hoga?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
g
@g4gamer330
@g4gamer330 2 жыл бұрын
salam sir sir ma na ya poucha na tha ka ap na for loop ka bahar q return kar wa ya hai data ku andar bhi tu hu sakhta tha
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Taky data return ho
@shahab1479
@shahab1479 2 жыл бұрын
thanks for making this video
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
It's my pleasure
@alihassan5651
@alihassan5651 2 жыл бұрын
Thanks soo much for this
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
subscribe and share with you friends
@goodwebdevelopers2582
@goodwebdevelopers2582 2 жыл бұрын
Hi sir Im getting an error, please help for (Map i in data) { postList.add(PostsModel.fromJson(i)); } The i value in line postList.add(PostsModel.fromJson(i)); is giving the following error The argument type 'Map' can't be assigned to the parameter type 'Map'
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
user 'Map as message is self explanatory.
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Go to your model and change it.
@muhammadjavedrafique4592
@muhammadjavedrafique4592 2 жыл бұрын
write for(Map i in data) insted of for(Map i in data)
@asadullah4269
@asadullah4269 Жыл бұрын
@@muhammadjavedrafique4592 brother i used this but now its give me this error for data ( the type string used in for loop must implemnt iterable)
@pushpeshpainuly5526
@pushpeshpainuly5526 Жыл бұрын
bro when i print "i" it throw error 😑
@fawadahmed2306
@fawadahmed2306 2 жыл бұрын
sir kindly also explain the model .from json, tojson,encoe,decode,etc..
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
already explained
@fawadahmed2306
@fawadahmed2306 2 жыл бұрын
@@thetechbrotherss can u please share yhe video link
@saeculorum8184
@saeculorum8184 2 жыл бұрын
Can you post full code or a github repo? very good tutorial
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Don't forget to give a start. github.com/axiftaj/Flutter-Rest-Api-Tutorials-With-Example
@anasmalix8593
@anasmalix8593 2 жыл бұрын
why i am not familiar with this code i think i am missing some pre-requisite for this code to understand i cant understand this syntax
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Start from first video
@wardaamjad
@wardaamjad Жыл бұрын
Is it necessary to create Live REST API's to integrate them with flutter?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
You must know to integrate apis with flutter
@neerajbhatt2461
@neerajbhatt2461 Жыл бұрын
Bhai pura flutter bootcamp follow kr ra hu pichle sare videos samjh aye but seriously ye video m kuch bhi samjh nhi aya mujhe
@thetechbrotherss
@thetechbrotherss Жыл бұрын
koi bat ni bro, practice kro smjh jao gy
@neerajbhatt2461
@neerajbhatt2461 Жыл бұрын
@@thetechbrotherss ok brother
@ShahSikander
@ShahSikander 3 ай бұрын
if statment ko execute kr k loading show ho rha screen pr agy move nai kr rha else tk?aysa q ho rha hy ..JsonToDart plugin kamnai krr rr to google pr Json to dart use key ta kya uss wja sy data show nai ho rha yaa kia issue ho skta hy?
@thetechbrotherss
@thetechbrotherss 3 ай бұрын
aise is liye ho raha ha k q k ap check ni kr rahy k error kahan par ha use try and catch
@noumanrafiq4409
@noumanrafiq4409 Жыл бұрын
Sir, how to create your own api(i mean real API) ? is there any specific platform for it...
@thetechbrotherss
@thetechbrotherss Жыл бұрын
use node js
@noumanrafiq4409
@noumanrafiq4409 Жыл бұрын
@@thetechbrotherss thanks
@sherazkhan_1044
@sherazkhan_1044 2 жыл бұрын
sir Assalam walikom sir mai vscode use kar raha hu mai konsi extension use karu please sir i am stucked off.
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
search json to dart on google
@hammadahmad7963
@hammadahmad7963 Жыл бұрын
The argument type 'Map' can't be assigned to the parameter type 'Map'.dart
@thetechbrotherss
@thetechbrotherss Жыл бұрын
It's clear, go the model and change string to dynamic
@hammadahmad7963
@hammadahmad7963 Жыл бұрын
@@thetechbrotherss thanks ho gya he
@AmeerHamza-vd9sb
@AmeerHamza-vd9sb Жыл бұрын
@@hammadahmad7963 bro can you tell me how you did this, mera nahi ho rha asy
@AmeerHamza-vd9sb
@AmeerHamza-vd9sb Жыл бұрын
ho gyaaaa.....
@Mohsin_Chaudary
@Mohsin_Chaudary 2 ай бұрын
Sir using this methos app runs smmoth on emulator and show response but on physical device it gives error after giving internet acces in .xml file and building apk it it showing blank screen
@thetechbrotherss
@thetechbrotherss 2 ай бұрын
it means ap k parent widget ma issues ha, use expanded and write place
@md.abulmoshadchowdhury1646
@md.abulmoshadchowdhury1646 Жыл бұрын
Hello brother! everything is fine but i don't understand the line object.fromJson/toJson ? what is the functinality of these two functions ? if u would discuss then would be more helpful for me!
@thetechbrotherss
@thetechbrotherss Жыл бұрын
it map the values if you change the parameter name in model you will null values
@Arbic_calligraphy65
@Arbic_calligraphy65 Жыл бұрын
nice sir
@thetechbrotherss
@thetechbrotherss Жыл бұрын
thank you
@viralcartoon567
@viralcartoon567 2 жыл бұрын
Can you please provide the JSON to dart model convertor extension in visual studio code because I am trying to download different Jason to dart converter it was not workin
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
You can use any online website for JSON to dart converter. I have not used VS code so i don't know.
@binqasimmasood8899
@binqasimmasood8899 2 жыл бұрын
did u solve this error
@FantasyChannelShuvo
@FantasyChannelShuvo 2 жыл бұрын
Nice video....
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thanks, do subscribe and share within your friend circle.
@FantasyChannelShuvo
@FantasyChannelShuvo 2 жыл бұрын
@@thetechbrotherss i have already done..sir will u plz make this video....?
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Bro i have already provided your the content you need to learn how to utilise things according to your requirements based on concepts you have learn. This is actual development.
@basitfaizan7928
@basitfaizan7928 11 ай бұрын
Sir I wants to make Netflix clone app with authentication features using firebase and I will use apis to get movies so the problem here is that how should I make my folder structure so that it looks professional
@thetechbrotherss
@thetechbrotherss 10 ай бұрын
check my clean code playlist
@S4eedKhan
@S4eedKhan 2 ай бұрын
Asalam u Alaikum Respected Sir, in line 24 where you use for loop for(Map I in data){ postList.add(myModel.fromJson(i)); is not working for me with the help of gemini I got this code which is working correctly postList = (data as List).map((i) => myModel.fromJson(i)).toList();
@thetechbrotherss
@thetechbrotherss 2 ай бұрын
nice
@S4eedKhan
@S4eedKhan 2 ай бұрын
@@thetechbrotherss Thanks Sir, Looking forward to meet you someday'' Yesterday a friend told me that I usually see Asif Taj in IT Park Peshawar,donno if its true or not
@harshitagrawal6334
@harshitagrawal6334 9 ай бұрын
what is the purpose of postList.clear().
@thetechbrotherss
@thetechbrotherss 9 ай бұрын
to clear the list before adding the data into list to avoid duplication
@ghufranahmed840
@ghufranahmed840 Жыл бұрын
Sir I have watched this video multiple time even with full concentration but I'm not getting a single concept. What should I do please guide me. Thank you
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Start the playlist from start
@ashikmahmood4018
@ashikmahmood4018 2 жыл бұрын
Boss Please make video about dio...plz
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
ok
@ABHISINGH-ty7ln
@ABHISINGH-ty7ln 10 ай бұрын
Sir i got error when i create class name PostsModel it's not show posts-model.dart
@thetechbrotherss
@thetechbrotherss 9 ай бұрын
Please follow carefully 🥲
@hauntednightshindi
@hauntednightshindi 2 жыл бұрын
hello brother please help me with this ---------- The name 'PostsModel' isn't a type so it can't be used as a type argument.-------- I am getting this error but you are not
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
watch video carefully
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
you are doing something wrong
@JagdishOnYT
@JagdishOnYT Жыл бұрын
I want to show data one by one, like after pressing next button, next item should be shown how to implement that
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Create an api for that and use it accordingly
@hfurqan980
@hfurqan980 9 ай бұрын
sir why we use snapshot in the future builder widget
@thetechbrotherss
@thetechbrotherss 9 ай бұрын
this is just a name you can use any name, it returns different states
@022_cse-csdeepakkumarsain7
@022_cse-csdeepakkumarsain7 Жыл бұрын
Sir i think the line 22 code should be inside the if statement starting at line 23
@thetechbrotherss
@thetechbrotherss Жыл бұрын
I don't remember right now but you can learn the procedure and implement it
@zareenharoon4287
@zareenharoon4287 2 жыл бұрын
very nicely explain.can you kindly make an edit in this video, i need to take the token and user id through the login and keep it along in all pages including this list view plus add search to the ist view as well thankyou
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Store the value of user id in shared preference in the get the value via future function or using async your own method then pass it to query. For searching listview builder go ahead your watch covid app tutorials i have explain how we can implement it. Do subscribe and share with your friends.
@zareenharoon4287
@zareenharoon4287 2 жыл бұрын
@@thetechbrotherss thankyou for the quick respnse. i am trying all the methods but coudnt succed...can you give me any example code where i can get the shared prefrences as well as can get the list itm values from the api as well. here is the code i cant get the values in bidy.dont know what i am doing wrong. please help me out so i can get my next step.i need these prefrences in all the pages. //defined to collect the data in String values String token = ""; String userid = ""; String databaseid = ""; @override void initState() { //TODO:implement initState super.initState(); //Function called _showItemList(); } // Variable for collecting data from database var data; //_login function is built to call data from the server Future _showItemList() async { try { //Fetch Saved Variables Data from SharedPreferences to send in Header SharedPreferences prefs = await SharedPreferences.getInstance(); setState(() { token = prefs.getString("Token")!; userid = prefs.getString("UserId")!; databaseid = prefs.getString("DatabaseId")!; print('prefs->token=' + token); print('prefs->userid=' + userid); print('prefs->database=' + databaseid); }); Map apiHeader = { "Content-type": "application/json", 'token': token, 'userID': userid, 'databaseID': databaseid, }; Map apiBody = { "ItemCategory": "", "DepartmentID": "", "VendorNumber": "", "StoreID": "1001" }; //For GetItemsList final String url = " api url here"; Uri uri = Uri.parse(url); //final finalUri = uri.replace(queryParameters: apiBody); //USE THIS final finalUri = uri; //USE THIS http.Response response = await http.get( finalUri, headers: apiHeader, ); if (response.statusCode == 200) { data = jsonDecode(response.body.toString()); print('response.body=' + response.body); ScaffoldMessenger.of(context) .showSnackBar(SnackBar(content: Text("Data : ${data}"))); } else { // showAlertDialog(context); print('There was an error while connecting to the server.'); print(response.statusCode); } } catch (e) { print(e.toString()); } }
@meenakshibhasin9456
@meenakshibhasin9456 Жыл бұрын
Hi, thanks for the video. I have issue. when i am trying to display the id and userid. it is showing error. Can you please explain how to do that
@thetechbrotherss
@thetechbrotherss Жыл бұрын
share the error please always
@meenakshibhasin9456
@meenakshibhasin9456 Жыл бұрын
@@thetechbrotherss it was resolved thank you.
@hashimjahangir9427
@hashimjahangir9427 2 жыл бұрын
hey brother the api response returns null. any solution
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
check api again and test it in postman.
@hemant2406
@hemant2406 Жыл бұрын
Sir mera code run hogya h pr mujhe steps yaad nhi rehti h...mujhe prior knowledge nhi h programming ki dart hi first language h jo me sikh rha hu...plz guide what i have to do
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Bhai muje bhi yad ni rehta, ap concepts clear kro
@gamesden8021
@gamesden8021 Жыл бұрын
sir please yeah answer kardain ky for(map i in data) yeah ju likhna hai woh list ma jason ky object ko add karna ky liya likha hai na or yeah map kuhn use kiya hai plz
@thetechbrotherss
@thetechbrotherss Жыл бұрын
g
@Hisk1496
@Hisk1496 Жыл бұрын
Sir i coded it in android studio and in this code i have no error, when i run it in chrome web it is showing me no data, its showing blank page is there any solution for this issue. How can I run it in Google Chrome as well?
@abdulsaboortech8784
@abdulsaboortech8784 Жыл бұрын
Wrap the futurebuilder with expanded widget
@thetechbrotherss
@thetechbrotherss Жыл бұрын
check for exceptions, add internet permissions
@asimreyazuddin3494
@asimreyazuddin3494 5 ай бұрын
11:24 I was not able to follow the process there. Could you explain the for loop again?
@thetechbrotherss
@thetechbrotherss 5 ай бұрын
These are type of loops, we are looping on data
@priyamohod1510
@priyamohod1510 Жыл бұрын
hello, I am not able to select that option new file Json to dart, how to solve this?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Watch part 5 and 6 to create models for api
@HrithikRajput-o6b
@HrithikRajput-o6b 10 ай бұрын
should i call async func inside build
@thetechbrotherss
@thetechbrotherss 10 ай бұрын
you can using future widgets
@ssagaming4545
@ssagaming4545 2 жыл бұрын
sir this Api code is not working .
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
It’s working bro
@Songme55
@Songme55 Жыл бұрын
The body might complete normally, causing 'null' to be returned, but the return type, 'Widget', is a potentially non-nullable type. this error is coming
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Please follow the video carefully it say data is coming null
@nardrev5437
@nardrev5437 Жыл бұрын
how to pass a query when i log in and the id from that login will go to the url?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
I didn't understand your question
@hassanalivlogger
@hassanalivlogger 2 жыл бұрын
nice
@AliButt-fk7oz
@AliButt-fk7oz Жыл бұрын
brother snaps hot data hasData is true but kuch b show hii ho rha?? na title na id
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Data parse ni ho raha hoga na
@virtalHospital
@virtalHospital Жыл бұрын
sir jab ma postmodel ki file bna raha hn to mera pas 4 files create ho rahi hain,, 1 address.dart 2 company.dart 3 geo.dart aur json place holder sa data copy kia ha and same data ha array sa start ha
@thetechbrotherss
@thetechbrotherss Жыл бұрын
ap extra parameter select kr rahy ho
@virtalHospital
@virtalHospital Жыл бұрын
@@thetechbrotherss Thank sir.
@user-Rania-n7m
@user-Rania-n7m 9 ай бұрын
sir, you have shown only 3 screens in this video, but there are lot of screens in the source code.
@thetechbrotherss
@thetechbrotherss 9 ай бұрын
it's a complete playlist
@user-Rania-n7m
@user-Rania-n7m 9 ай бұрын
@@thetechbrotherss oops! sorry. I didn't notice. Thankyou sir
@SSAPro
@SSAPro 2 жыл бұрын
This API code is not working
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
It’s working bro check the comments working with everyone
@dushyantsharma2415
@dushyantsharma2415 Жыл бұрын
yeh error sy pareshan hu kya kru _TypeError (type '_InternalLinkedHashMap' is not a subtype of type 'Iterable')
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Please follow the video carefully it's not list
@azcreativemedia7118
@azcreativemedia7118 Жыл бұрын
Can't get output of api integrarion in chrome?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
yes
@mohdzaid-3430
@mohdzaid-3430 Жыл бұрын
i dint get the API only loading is showing at top of the screen so plzz help
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Please print snapshots, test api in postman
@IzharBadshah_19
@IzharBadshah_19 Жыл бұрын
Sir apni loop k andher Map q le liya can you explain loop......plz sir
@thetechbrotherss
@thetechbrotherss Жыл бұрын
To map our object in array
@joymazumder-kr2og
@joymazumder-kr2og 4 ай бұрын
I dont understand , what is null safety ? and how i understand when null safety or not ?
@thetechbrotherss
@thetechbrotherss 4 ай бұрын
null safety means value cannot be null for variable
@The_Suraj_Khot
@The_Suraj_Khot 7 ай бұрын
tnx bro..
@thetechbrotherss
@thetechbrotherss 7 ай бұрын
do share with your friend
@walidkhan5337
@walidkhan5337 2 жыл бұрын
same code no error still API not working?
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Api is working check again you must be flint something wrong
@walidkhan5337
@walidkhan5337 2 жыл бұрын
i think snapshot mai data nahe arha sirf loading show kr raha hai kya karo ab?
@walidkhan5337
@walidkhan5337 2 жыл бұрын
@@thetechbrotherss thank you for your reply and last mai maine apka code pora copy keya still not hit api
@muneebullah427
@muneebullah427 Жыл бұрын
why we crate model plz explain
@thetechbrotherss
@thetechbrotherss Жыл бұрын
to parse value to ui by maping data
@kmailabbas5000
@kmailabbas5000 2 жыл бұрын
sir sime aap jaisa code kia hai likin screen per Text k ilawa kuch or show nahi ho raha
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
ap ny kuch mistake ki hogi double check it
@zahrachoksi6571
@zahrachoksi6571 2 ай бұрын
Hello maine same code likha hai phir bhi loading ... Hii show hota hai what is the reason behind this ???
@thetechbrotherss
@thetechbrotherss 2 ай бұрын
use try catch to catch the error
@educationforever314
@educationforever314 26 күн бұрын
I skipped the ! operator in the following code. Check if you made the same mistake. if (!snapshot.hasData) { return const Text('loading');
@muhammadraheel2721
@muhammadraheel2721 11 ай бұрын
Sir g humna jo i use kiya ha wo tu kahi declear ni krwaya tu wo kesy use ho gya
@thetechbrotherss
@thetechbrotherss 11 ай бұрын
Bhai loop ha na
@shashidharchinna1203
@shashidharchinna1203 Жыл бұрын
am getting error at homescreen page, Map i in data=> in getting error
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Please watch video carefully, understand the concepts and fix it. You must be doing something wrong
@medhavisharma1429
@medhavisharma1429 Жыл бұрын
waaah Taj
@thetechbrotherss
@thetechbrotherss Жыл бұрын
thank you
@bobhero7
@bobhero7 2 жыл бұрын
Matlab toh samjhaye ki Aap ne if else and for loop kyu use kiya..
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
sub kuch smjhaya ha bar bar smjhaya ha k kiss condition ma use krna ha kiss ma ni
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
ap pehle api k structure ko smjho
@optionhive
@optionhive 8 ай бұрын
Do you have flutter course?
@thetechbrotherss
@thetechbrotherss 8 ай бұрын
Check flutter bootcamp 2022 playlist
@akhileshgoswami9497
@akhileshgoswami9497 3 жыл бұрын
Osm video
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
Thank you
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 36 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 76 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 138 МЛН
REST API with Flutter | Step by step tutorial
11:10
CodeX
Рет қаралды 164 М.
REST Call with Flutter - Http methods
19:55
CodeX
Рет қаралды 73 М.
Get data from Api in flutter - HTTP Requests in flutter
15:00
Flutter With Me
Рет қаралды 137 М.
REST API with GetX | Flutter tutorial | Shopping app
26:43
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 36 МЛН