Detailed Flutter API Tutorial | Fetch Data from Internet | Flutter Tutorial
HTML-код
- Опубликовано: 30 июл 2024
- In this video we will learn to fetch data from the internet using api calls.Learn to do API Integration in your application. Getting data from Internet i.e getting data using api requires the response to be parsed.
In this video we will learn to parse different types of data and handle them in your mobile application. You can get the sample APIs from our website,
www.thegrowingdeveloper.org
Yes our website is now live ! Go and check it out.
If you like my work , you can support me by donating through PayPal:
www.paypal.me/thegrowingdevel...
Become a Patron -
/ thegrowingdeveloper
Don't use PayPal? You can support from the link below 😇
rzp.io/l/thegrowingdeveloper
________________________________________________________________________
For more tutorials subscribe to the channel :
ruclips.net/user/TheGrowingDev...
COVID-19 Mobile app complete tutorial -
• COVID 19 App | Flutter...
Flutter 21 Days Challenge:
• Flutter 21 Day Challenge
For other videos on Flutter:
• Flutter Tutorial for B...
Do like and follow 'The Growing Developer' on other social platforms as well. Below are the links -
Facebook link - / thegrowingdeveloper
Instagram Page link - / thegrowingdeveloper
LinkedIn Profile - / singh-saheb Наука
Superb. Liked it even before watching :p
Nice easy... I'm beginner...
This video is very helpful for me thank you so much
thank you soo much, you helped me
Thanks a lot to show each type of apis response format.
Glad it was helpful!
Thankyou so much,. you really made it look simple asf. Much appreciated.
Thank you so much 😊
very helpful tutorial. just amazing❤❤
Thank you so much for the video! Could you also explain how to get a random element from the list in the API? Thank you
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
Thanks for this amazing tutorial
You're welcome 😊
Best ever.i watch lot's of video to learn http.but i can't.but you helped me alot
Glad you liked it!!
Kya Mast Smjaaya hai Saheb bhai!!! Tackling with Error intentionally, that's the thing we Learners need. Just After a minute I gave a like then watched the rest.
Thank you so much!!!
Many thanks for this video - I found it very helpful
Glad it was helpful!
Superb video bro, the video explanation is so great. What is like was that you explained every concept clearly. Hats of man.....🥰🥰🥰🥰
Thank you so much 😀
bro i need to fetch my own website user details and authenticate withe my flutter app how to do tht pls tell bro
Thank you ❤️
You’re welcome 😊
Can't believe you posted this. I've been struggling for last 2 days working with a really large API dataset and I think Map is going to solve my problem. Was about to write on Facebook asking if someone will help me figure out how to work with complicated API's. Refactoring this into Model would be useful, especially how you would Map different sets of data.
Actually that won't work. How would you Map if the data had an index before each item i.e. {3 items
"result":true
"itemsCount":3720
"items":{
"backpack":
[
0:{
"id":"BID_451_HolidayDeck"
"name":"2020 Kickflip"
"type":"backpack"
Glad it helped! 😊
This is a named array and this type of structure is seen in php , let me check if we have some way to parse it
Nice and easy to learn about api...thank you so much....💯🔥
Glad it helped 😊❤️
your teaching is awesome...
love u bro
Glad to hear that ❤️
wow really cool bro.first like and first cmt.keep going bro,i always stand with you and your channel
Thank you so much. Keep Supporting ❤️
Excellent!!! Thank You!
Glad you liked it!
Thanks bro, very nice
Thank you too!
You are awesome ❣️ bro..... It's really helpful
Thank you so much 😀
wow :o love it....really nice explanation...keep doing
Glad you liked it!
Kindly tell me how to display only each user's data on their own login. I did it in Firebase, but how can I do it in Rest API
Thanks for making great videos. I am watching many video from your channel and learning making and designing Apps.
Just one question how can i fetch JSON API periodically in background ? I tried with work manager but could not able to do. please help
You need to add services natively for each platforms to make it work propely, However fetching API data when app is not in use is not recommended.
Thank you Sooo much Sir.
Most welcome
Best tut ever seen.. If any one begginer see this
Thanks 😊
thank alot
most welcome!
Nice
thaks, best teaching.
Glad you think so! ❤️
Thanks a lot :)
You're welcome!
Amazing Explanation
Glad you think so!
nice tutorial bro, i hop create tutorial about search for listview and or like it. thanks
Will do soon 😊
Thank you, very nice and easy-to-follow explanation!
Glad it helped 😊
nice tutorial, nice website!
Thanks 😊♥️
wow what a great explanation. Could you please show how to do grid view dynamically
Yeah Sure Priyank. Soon ❤️
It is very helpful .
Glad you think so!
Sir how to do if we have array that in array? for example:
{
"test": "OK",
"test1": "ok2!",
"Details": [
{
"Information": [
{
"info_id": 1,
"name": "Romeo",
},
Amazing
Thank you! Cheers!
QUESTION: How to handle this API fetched map data when there are a lot of things going with their uses. During loops, similar-looking stateful widgets passing to other pages, etc. I am making a 7 Day forecast app in Flutter and it's driving me crazy. I can build static visual UI but I don't know how to fill them with data. Could you please guide me towards API data handling in a two-page weather app?
Yeah sure!! I suggest you to watch my latest video on writing professional code. You'll figure the answers yourselves!! If not, I'm always here.
Quick question! What if I wanted to show the string with a specific id? For example, I would like to show the 'title' that corresponds to 'id' (2). What would this look like? And thanks!
You can put conditions on the id.
Thank you very much for the concept.
Now I am feeling comfortable to work on the API. Even just after your tuto i have made something of my own & succed with that
I have two request can you just show us other methods of working with APIs.
And user login and signup with the REST API will be appriciate
Thanks again for the sharing
Glad to hear that! We will cover these concepts as well in near future
@@TheGrowingDeveloper Cool
Looking forward for that.
Sir please make a video on how to implement funtionality of add to favorites to local database using sqflite where data is coming from json api
Great suggestion! Soon 😊
For me i got error message the String stringResponse; line says: Non nullable instance field must be initialized. Any idea why is not working and for you there is no error?
Me too, any suggestion?
I have been struggling with api key. During my research i found out about headers could you help me on how to use the headers to keep the api key
Yes will soon be uploaded on this channel.
It would've been awesome if you scrolled through the full code at the end because I missed something and had to go back haha, but great video thank you!
Next time!
i'm getting 'the argument type string can't be assigned to the parameter type uri' error, can you please help me why i'm getting this error
Can you show me the code? You can share the screenshots on any of my social handles 😊
I'm also having the same error
I am also getting the same error and link is not same as the video. is there any solution ?
The http get takes up an Uri now so you can just write Uri.parse("your url") instead of just url
Do you have source code related to this?
Muy bueno. Excelente explicación
Gracias !
Bro where to store videos on server when making a udemy clone app i want to store recorded video
You can store it as normal files!
You have a knack for teaching. Very few people have that. Keep going. All the best!
did his code work for you?
Thank you, I will
awesome
Thank you 😊
i get error in url line ,"The argument type 'String' can't be assigned to the parameter type 'Uri' ".
you can use Uri.parse("url in String")
Bro, if the "facts" contain another array just like this:
"facts" : [
"id": 1,
"data":[
{
"type":"Normal"
}
]
]
what we do?
Just look at the opening and closing braces. Based on that you can decide on the Structure to use.
Why you have not used fromjson methods and factory methods
I tried to keep any more complex stuff out of the picture at that time. Now as we have progressed pretty far, I'm planning a video on the same.
after flutter null safety
every List, Map declaration needs late modifier
but its shows an error of Late InitializationError
Sorry for the late reply. Is the issue sorted yet?
Moreover always remember to give it some initial value before using it
@@TheGrowingDeveloper no can u please help
same issue
how can we get all divs of a website?
make get request on the html page and write the logic to separate based on
I want to print my facts data to next screen! How can I do that?
Sorry for such a late reply. Is the issue sorted yet?
please make video on rest api also
Soon. I'll post a poll on Community section . Do vote on the technology that you want to learn for making the API
@@TheGrowingDeveloper ok
can i get source code?..
I don't have the source code for it yet. You can read about it at thegrowingdeveloper.org
Make apps like Spotify clone or youtube clone using flutter please
Sure 😊✌️
@@TheGrowingDeveloper bro I'm b.tech final year. I wanted to a project on flutter so.... Please teach us a complete app making from scratch
Soon 😊
Can u make a tutorial with firebase
Soon Kyaw Kyaw Thar 😊
The Growing Developer Thanks you bro.I always focus on your channel and I told my friend from work about your channel and they’re all feel very well.Most of my friend including me coming and working from Swift native and Flutter&Dart are new language & framework for us and the we’re all a lot to expect on flutter
That's great 😊 Thanks
not working buddy ....I am not getting any response
i guess http.get() is depricated
Can you share the code?
👏👏👏👏👏🤜🤛
😊
[
{
"Name":-.....
"Type":-[
{
"title"-
"IP"
}
{
"title"-
"IP"
}
]
}
]
please can you tell me what needs to be done here ?
What exactly ??
you voice has grammatical mistakes
Still learning!!
@@TheGrowingDeveloper that's right. Don't take it seriously please i just pointed
Yes yes!! I don't mind it 😇♥️
This video helped me a lot
God bless you bro
I was learning api implimentation from a week
But no shit gets inside my head
Especially http.get one
This video is LIT👌
Glad it helped!! ❤️