API Integration in flutter | Fetching data from API | Flutter Tutorial
ฝัง
- เผยแพร่เมื่อ 2 ต.ค. 2024
- In this video, I have tried to explain to you how to integrate API in flutter app. I hope you will like it.
Note: 50% of this channel earning is used for Animal welfare.
Keep Learning,
Praveen Prakash
API Link:- reqres.in/
Flutter- Firebase Series: - rb.gy/vvbn9r
Flutter Animation Series:- rb.gy/rjnmpj
Domino's clone app: • Dominos Clone App in F...
Food Delivery app:- • Food Delivery App | Sp...
Book Reading app:- • Flutter | Book Reading...
Share, Support, Subscribe!!!
TH-cam: / praveenprakash1986
Facebook page: / techniepraveenprakash
Instagram: / techiepraveen
Facebook profile: / praveenthedesigner
Twitter handle: / techiepraveen1
So clear and straightforward 🥺
Thank you 🙂
thanxx a lot very useful tutorial
Welcome 🙂
Thank You so much
Thank you so muchh.....
Welcome, @Sreejith.. Keep learning and keep supporting me 🙂
@@TechiePraveen Yes!! Sure
Expecting more videos on Flutter ✨️
@@sreejithcs9443 sure, i will upload more soon.
@@TechiePraveen ❤️
why Future apicall() async is called ? Can someone plz tell me ?
Hi, whenever we are waiting for some data, then we used async, and future is used to map json values...those values will get in future
thanks a lot it's really meaningful tutorial.
welcome 🙂
Thank you for this video, it helped simplify API call
welcome 🙂
Very nice explanation thankyou so much 🙏🏼🙏🏼🙏🏼
I am glad that you like my video, Somesh 🙂
Thanks A Lot Buddy. Ur Video Help Me A Lot. Keep It Up And God Bless U.
Thanks for commenting @Prabin.. Keep watching and keep learning.
thank you first time i try API successfully
Thank you for commenting. Keep learning and keep supporting me. 🙂
so clear information
Thank you 🙂
Superb
Thank you 🙂
Nice and complete API tutorial
Thank for commenting @Techno Trending. Keep watching and keep supporting me. 🙂
got to learn a lot of things infact it was a grt video!! but in the end I am getting a error " Unhandled Exception: type '_InternalLinkedHashMap' is not a subtype of type 'List'"
Hi Aman, sorry for late reply. Need to see the code for error. Please ping me on twitter for one to one interaction and thanks for commenting, i’ll try my best to help you out 🙂
@@TechiePraveen I have too that error. can you explain or correct code
Thanks a lot , by following ur teaching I made my own UI , with video and description!! Thankyou so so so much ! Great work!
Welcome 🙂
thanks. learn lot of thinks
It was best explained thanks 😊
Thank you @zabi 🙂
Hii sir
String stringResponse;
Map dataResponse;
Map mapResponse;
List listResponse;
Show tha error
All Response line show error
How to find
put it like this as i wrote
String? stringResponse;
Map? mapResponse;
put ? mark after the data type
Thanks bro
nice vedio
keep doing vedios 👌👌👌
Thanks a lot @Areena. Keep learning and keep supporting me. 🙂
Thanks alot..I want to know that how can I get individual item details after pressing on single item from list
Hi Shivendra, I think you want product details page, so for this you can create a separate class and pass the value of the api in that class by using index. Let me know in case you need any help from me. 🙂
@@TechiePraveen yeah I used index and I am getting all the list items but I only want to get a single item details of an selected item.Thanks..
@@shivendratiwari8069 so, in that case, you can give the condition for that specific items.
Thanks Praveen
welcome Chaitanya Pawar 🙂
Thank bro 😊😊😊😊😊
Welcome bro 🙂
mapResponse["data"].toString(), (_TypeError (Null check operator used on a null value)) showing me this error can any one tell me what to do?
after putting datatype Map?mapResponse....
Thanks a lot, its very helful video and to the point . great one
Thank you 🙂
Thanks a lot for this.
Flutterflow par video banaiye
Bahut jald flutter ke series start hone wali hai so stay tuned 🙂
Please give your detail to contact you.I am building a flutter app where dynamic data and list charts is getting involved and i am getting confused in that.Please help
Can you share the code and list the packages which you have used in this, please?
this is superb IMO... lets give a try !
Thank you 🙂. Keep watching and keep supporting me.
Wow this is amazing . Thanks a lot
Thank you collins for your beautiful comment. Keep
learning and keep supporting me 🙂
helped a lot thank u sir
Thanks Satyam
Thank you
Most Welcome, Kinis. 🙂
Very nice tutorial
Thank you. 🙂
How do i display container with an image if listresponse. Length == null? 0 : listresponse. Length
This was lovely. Please can you lecture on post method for registering a user and logining in the registered user
Hi Hafis, thank you for commenting. Sure, i will create the API integration in detail with POST method using e-commerce scenarios. Stay tuned. 🙂
@@TechiePraveen really looking forward to that. Thanks in advance
thanks can i use this method in travell app please answer me ????and what i write to get api from travell app can u help me
How to get Home List User click push Detail User ???
How to listen to data change in http (api request)
Hi @chachu, please elaborate your question. You want to handle when API response gets changes ?
well explain to fetch data from api,s
Thank you @Shashikant, stay tuned as new videos are going to upload soon..🙂
okka mukka ardam kavadam le
Thank you ❤️
Welcome 🙂
now please add on click method in listview
Hi Jay, soon i am going to upload an e-commerce app videos from scratch where i am going to cover all these topics
fully clearly understandable,simply super
Thank you 😊 @ak
Do lecture on database bro
is wrap stream builder to list view
for imidently data change
This great video, in fact, I gained a lot from it. Please, I am having this error:
lib/main.dart:67:35: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null.
- 'Map' is from 'dart:core'.
: Text(mapResponse['data'].toString()),
^
Hi Olainiyan, i think you have not handled the null conditioned, so for the either write the code for null condition or downgrade the null safety..🙂
Use like this
Map mapResponse ={ };
List listResponse = [ ];
HI i am a beginner learning Flutter and getting the same null error in this statement, child:mapResponse ==null? Text("Data is laoding"):Text(mapResponse['data"].toString()),
Can you provide exact /more details how to resolve it. Thks
Where is modal class??
Hi Yusuf,as this is just an example of api integration. So, i haven't created a model class. However, you can create a model class and also use state management for the better handling of apis. Let me know in case you need any help in this.
easy to understand
Thank you 😊
bro pojo class whre is code?
well explained praveen
Thank you @Debjeet😊
how to map that api value into the doughnut chart
Sir pls explain the post api for login
thank you man
Thank you 😊
for me not wrking i want git source code
I am getting output in html format
Great
Thank you @sajal 🙂
thank you brother
Most welcome. Keep learning and keep supporting me. 🙂
thanks a lot sir
Nice informative video 👍✨
Thank you 🙂. Keep watching and keep learning.
thank you alot sir
thank you!
Sir Arraylist se Arraylist kasie nikalege
how to do a pagination here?
showing error stringResponse not initilized
This is happening because We're Initializing the stringResponse in the apiCall() method's if condition but if the success code != 200 then there's no else condition to initialize the string. Therefore, this error will come.
solution: String stringResponse = " " ; //initialize empty String
@@vchib1 then also I got
@@vchib1 I couldn't able to access the element in the text field
hi sir, im a beginner and i have live running website and im try to convert it into a app and i have designed my own ui in flutter and how do i pull the login data from the website
With the help of api...u can do this..
Thanks alot praveen for explaining this so clearly. This was pain for me as I'm mostly get comfort with Angular and JS Frameworks 👏
I am glad that you like this video. Keep learning and keep.supporting me. 🙂
Easy and clean explanation ever, 100% worked tutorial . Thanks a lot man.
Thank you @Sanjeev, Keep learning and keep supporting me. 🙂
really good explanations. pls post like this relevant videos comparing two three api together