No video

Flutter beginners tutorial: Make HTTP requests to a REST API. Fetch data from the network.

  Рет қаралды 10,977

Droidmonk

Droidmonk

Күн бұрын

By the end of the video, you'll have a clear understanding of the following concepts:
1. How to perform asynchronous operations in Flutter?
2. Difference between asynchronous and synchronous functions? Why/When do we need asynchronous functions?
3. What is Future, FutureBuilder ?
4. When to use await and async?
5. How to make HTTP (GET/POST/PUT/DELETE) requests to a REST API from Flutter?
7. How to fetch a list of items from the network and display it on the UI using a FutureBuilder?
8. How to fetch data of individual items by ID from the network and display it on the UI?
9. How to send data to a REST API?
10. How to update data through a REST API?
11. How to delete data through a REST API?
SOURCE CODE: github.com/git...

Пікірлер: 53
@johnmungandi4413
@johnmungandi4413 Жыл бұрын
A good flutter teacher on KZfaq said about the letter. I have never seen a video like this anywhere. All my doubt have been cleared in one video. Thanks to you.
@droidmonk4820
@droidmonk4820 Жыл бұрын
Glad it was helpful! Stay connected.
@shadrackongera1216
@shadrackongera1216 Жыл бұрын
Great video! Your explanation was just what I needed, and you went into meticulous detail to make sure I understood everything. Thanks for sharing your expertise!
@droidmonk4820
@droidmonk4820 Жыл бұрын
Glad you liked it! Welcome to the channel, Stay connected.
@user-dv1ps1ir7z
@user-dv1ps1ir7z Жыл бұрын
Very helpful video short and very detailed. I will say thank you again because this is the best I have seen so far
@droidmonk4820
@droidmonk4820 Жыл бұрын
Glad it was helpful! Stay connected.
@replaytvsenegal7664
@replaytvsenegal7664 Жыл бұрын
good job thanks you from Senegal Africa
@droidmonk4820
@droidmonk4820 Жыл бұрын
Thank you, stay connected
@lcppb
@lcppb Жыл бұрын
Excelente Explicação CRUD REST API......Parabéns
@droidmonk4820
@droidmonk4820 Жыл бұрын
Obrigado, permaneça conectado
@bestoftheinternet3421
@bestoftheinternet3421 Жыл бұрын
thanks sir
@droidmonk4820
@droidmonk4820 Жыл бұрын
Welcome, stay connected
@tilttrader
@tilttrader Жыл бұрын
great video.Problem solved in a single video
@droidmonk4820
@droidmonk4820 Жыл бұрын
Glad it helped, stay connected.
@lanreadedara5088
@lanreadedara5088 Жыл бұрын
You did good with this video
@droidmonk4820
@droidmonk4820 Жыл бұрын
Thank you very much. I am trying to do better, stay connected.
@agony4181
@agony4181 Жыл бұрын
If i would can get more one like this video i would do this
@droidmonk4820
@droidmonk4820 Жыл бұрын
Thanks for commenting, I hope the video was helpful to you. Stay connected.
@user-dv1ps1ir7z
@user-dv1ps1ir7z Жыл бұрын
thank you
@droidmonk4820
@droidmonk4820 Жыл бұрын
You're welcome
@bestoftheinternet3421
@bestoftheinternet3421 Жыл бұрын
nice
@droidmonk4820
@droidmonk4820 Жыл бұрын
Glad you liked it. Stay connected.
@abdulhamidkhorajiya2256
@abdulhamidkhorajiya2256 Жыл бұрын
Excellent video 😊
@droidmonk4820
@droidmonk4820 Жыл бұрын
Thank you! Cheers!
@codewithdarkeh
@codewithdarkeh Жыл бұрын
Thanks so much, I have got to understand very well. Besides, my post_list page showed the circular progress indicator and not the data. I tried catching the error, but it seems everything is working fine. What do you suggest?
@droidmonk4820
@droidmonk4820 Жыл бұрын
Hi if you are still having the error, then check whether you are returning the appropriate widget from the builder function when data is available. Sorry for the delay in responding. Stay connected.
@theifeanyi
@theifeanyi Жыл бұрын
in the Post Details page, you passed "post" into EditPost page at 32.29 timeline, how did you identify it within that context? mine is showing unidentified post
@droidmonk4820
@droidmonk4820 Жыл бұрын
Let me check
@droidmonk4820
@droidmonk4820 Жыл бұрын
This is a valid confusion; I am sorry for that. Declare the "Map post" above the build function --- late Map post; @override Widget build(BuildContext context) {} Inside the builder function of the FutureBuilder , once you get the data assign it to the variable post if (snapshot.hasData) { post = snapshot.data!; .....} Take a look at relate source code on the link below: github.com/gitanjal/flutter_http_basics/blob/master/lib/screens/post_details.dart
@theifeanyi
@theifeanyi Жыл бұрын
@@droidmonk4820 working now. thanks alot!
@viandaelendherlina5923
@viandaelendherlina5923 Жыл бұрын
good teacher
@droidmonk4820
@droidmonk4820 Жыл бұрын
Thank you,🙂
@dushyantsharma2415
@dushyantsharma2415 Жыл бұрын
i have an error _CastError (type '_InternalLinkedHashMap' is not a subtype of type 'List' in type cast)
@droidmonk4820
@droidmonk4820 Жыл бұрын
Most probably you are getting this while trying to fetch the details of one post, right! (may be at snapshot.data). Meaning: You are trying to put an instance of Map in a List. Solution: Try changing the type of the variable(Where you want to put the result) to a map.
@schoolbook1
@schoolbook1 Жыл бұрын
Superb brother. Can you do the same with help of GetX library?
@droidmonk4820
@droidmonk4820 Жыл бұрын
Sure, I'll do that. Thanks.
@viratabd4992
@viratabd4992 Жыл бұрын
Can you make a playlist for restapi flutter bro❤
@droidmonk4820
@droidmonk4820 Жыл бұрын
I shall create for sure. Stay connected, thanks.
@viratabd4992
@viratabd4992 Жыл бұрын
Sure bro
@aayushstha4137
@aayushstha4137 Жыл бұрын
How to do this with a data model? Thanks for the video
@droidmonk4820
@droidmonk4820 Жыл бұрын
You'll need to parse the json and create the instance of the model. Have you tried anything?
@aayushstha4137
@aayushstha4137 Жыл бұрын
@@droidmonk4820 Yes i did one page and I was successful showing all the users but I wanted to do it for one user by using thier user ID and I could not do it.
@Pyrotech6969
@Pyrotech6969 Жыл бұрын
hii, i am getting error that is '_InternalLinkedHashMap' is not a subtype of type 'List', i am trying to fetch data from twelve data api, plese help
@droidmonk4820
@droidmonk4820 Жыл бұрын
Most probably you are getting this while trying to fetch the details of one post, right! (may be at snapshot.data). Meaning: You are trying to put an instance of Map in a List. Solution: Try changing the type of the variable(Where you want to put the result) to a map.
@Pyrotech6969
@Pyrotech6969 Жыл бұрын
@@droidmonk4820 i am sorry, the code workd fine, i made mistake while fetching data from api
@droidmonk4820
@droidmonk4820 Жыл бұрын
No worries. Stay connected.
@gregorybecker2231
@gregorybecker2231 Жыл бұрын
I am getting the error 'The method 'jasonDecode' isnt defined for the typre 'HTTPHelper'.
@droidmonk4820
@droidmonk4820 Жыл бұрын
Add the line below at the top of the file containing the HTTPHelper class. import 'dart:convert'; The method jsonDecode belongs to the library dart:convert . Thus you must import the library to be able to access it.
@gregorybecker2231
@gregorybecker2231 Жыл бұрын
I fixed it... changed Import 'dart:convert' to Import "dart:convert' as cnv then changed items = cnv.jasonDecode(jasonString)
@aravindhkumar69
@aravindhkumar69 Жыл бұрын
how i contact you sir...please reply to me....
@droidmonk4820
@droidmonk4820 Жыл бұрын
Let's connect on LinkedIn www.linkedin.com/in/gitanjal
REST Call with Flutter - Http methods
19:55
CodeX
Рет қаралды 70 М.
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 96 МЛН
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 47 МЛН
小丑把天使丢游泳池里#short #angel #clown
00:15
Super Beauty team
Рет қаралды 48 МЛН
22 GENIUS TECH HACKS TO MAKE YOU SAY WOW
11:58
5-Minute Crafts PLAY
Рет қаралды 17 МЛН
Flutter Consume Rest API With Best Practices
31:27
Coding Orbit
Рет қаралды 25 М.
Flutter Http Request And Custom API | In Hindi By Desi Programmer
21:26
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 551 М.
Http Post Method - Flutter || Post Data to API in flutter
17:32
Flutter With Me
Рет қаралды 37 М.
Todo App using Rest API | CRUD App | Flutter English Tutorial
1:00:01
Nitish Kumar Singh
Рет қаралды 80 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 354 М.
API Endpoints? Get data from the web easily with PYTHON
5:38
John Watson Rooney
Рет қаралды 65 М.
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 96 МЛН