A good flutter teacher on RUclips 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.
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!
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?
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.
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
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
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.
@@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.
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.
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.
A good flutter teacher on RUclips 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.
Glad it was helpful! Stay connected.
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!
Glad you liked it! Welcome to the channel, Stay connected.
Very helpful video short and very detailed. I will say thank you again because this is the best I have seen so far
Glad it was helpful! Stay connected.
good job thanks you from Senegal Africa
Thank you, stay connected
Excelente Explicação CRUD REST API......Parabéns
Obrigado, permaneça conectado
great video.Problem solved in a single video
Glad it helped, stay connected.
You did good with this video
Thank you very much. I am trying to do better, stay connected.
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?
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.
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
Let me check
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
@@droidmonk4820 working now. thanks alot!
Excellent video 😊
Thank you! Cheers!
i have an error
_CastError (type '_InternalLinkedHashMap' is not a subtype of type 'List' in type cast)
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.
Superb brother. Can you do the same with help of GetX library?
Sure, I'll do that. Thanks.
How to do this with a data model?
Thanks for the video
You'll need to parse the json and create the instance of the model.
Have you tried anything?
@@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.
I am getting the error 'The method 'jasonDecode' isnt defined for the typre 'HTTPHelper'.
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.
I fixed it... changed Import 'dart:convert' to Import "dart:convert' as cnv then changed items = cnv.jasonDecode(jasonString)
thanks sir
Welcome, stay connected
Can you make a playlist for restapi flutter bro❤
I shall create for sure. Stay connected, thanks.
Sure bro
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
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.
@@droidmonk4820 i am sorry, the code workd fine, i made mistake while fetching data from api
No worries. Stay connected.
good teacher
Thank you,🙂
If i would can get more one like this video i would do this
Thanks for commenting, I hope the video was helpful to you. Stay connected.
thank you
You're welcome
nice
Glad you liked it. Stay connected.
how i contact you sir...please reply to me....
Let's connect on LinkedIn
www.linkedin.com/in/gitanjal