If you have problem this row: builder: (_) => PostApiService.create(), replace 'builder' with 'create': create: (_) => PostApiService.create(), It's all because of the 4th version of provider (Reso coder uses 3rd version in his video) You can check more Provider documentation here: pub.dev/packages/provider
Could you show how to use 2 or more ChopperServices within the same ChopperClient? I'd like to have a custom converter for each of the ChopperServices.
I have been following you in kotlin tuts, now i am happy that you also decided to use flutter as i do, we need another video of dealing with chopper while posting data, when is it coming out?
Thanks for this great tutorial. I tried chopper in one of my project and is working great. I'm a beginner in flutter development. Now I'm trying to implement bloc pattern for the same project, following your bloc tutorial on weather app ofcourse 😀. But one thing I can't figure out is, where to initialise chopper and where to dispose it. My app is a shopping cart. So far I have loaded list of products from my own API (without bloc). Now I want to use bloc for the same and later I have to show details of single product too. Another problem I faced was when device is not online, widget shows null pointer exception. I handed that case by showing no internet in a text widget. I also tried adding a retry button, but when I call bulid(context) in the onPressed, nothing happens. What method should I call to reload the page? I'm using stateless widgets only. I didn't find the need to use stateful widget so far in this app.
it clearly seems that you need to modify the UI based on a user interaction, which will be to use SF widget so that you call setState() method, which is to notify some values have changed and update the UI
Idk, as to me, too much boilerplate code for the generator. Just write a few lines more and you can easily go without any choppers. I think code generator must do all this work itself, e.g. as OpenAPI does. OpenAPI has its problems also but you literally need to pass it only a swagger URL and it will generate all the classes on its own
We don't know which way to go with Android Development these days. Java, Kotlin, Flutter. Also google hacking together stupid libraries like the Paging library (which is a complete mess) does not help at all. What is your recommendation?
Really, I would like to thank you for you video and sharing those info with us but I wish if you could show us how to integrate Woo-commerce REST API With Flutter App and make Wordpress as backend system for my App?
give error The argument type 'Widget Function(BuildContext)' can't be assigned to the parameter type 'Widget Function(BuildContext, Widget)'. on return Provider( builder: (_) => PostAPiService.create(),
Thanks for awesome tutorial. Please, can you help with a role-based authentication login tutorial that displays different drawer navigation bar for different users (e.g Student, Teacher, Parent)?
Many of http api needs the use of headers providing a cookie one gets with an initial call, is in your plan to analyze the way one can obtain a cookie and use it during any calls? Thank you
Hi, I don't know why I got this error, like chopper_generator:chopper_generator on lib/network/model/api_services.dart: Missing "part 'api_services.chopper.dart';", Please help me. when I use the command flutter packages pub run build_runner watch form Android Studio, I had change the analyzer part also but no luck.
The sad thing is, there is currently no documentation outside of this tutorial. I honestly don't know why the author of this package doesn't make any docs.
I got that error too as I was recording a new tutorial today and I almost plucked my hair out! What you need to do is to go to the pubspec.*lock* file (not yaml) and change the analyzer version to "0.38.2". I don't know why they push out broken code, but hey, that's how it is. I hope this solves the issue for you.
@@ResoCoder would you be willing to post a resource or go more in depth on why it causes errors. Iirc, in your built value tutorial we used a factory constructor but not in this one.
Hi, Reso Coder I often watch your videos on UA-cam and I am a coder from china I am a beginner of flutter and recently, I had a problem about flutter, there is a discuss on github github.com/flutter/flutter/issues/11655, I am so confuse about this problem, and I download one of your tutorial project, I found the same problem, the tutorial project is flutter-chopper-tutorial-course, the problem is in the PostList when I navigator to PostDetail, the PostList will fetch data again, that mains build has been trigger, and I back to PostList, it fetch again! I think this is a big problem, please help me
first, thank you very much for the video, I liked this video because I really appreciate your time and effort. but for me, this is not practical at all. we expect to save time and simplify our code, not to write sooooo much complex boilerplate code
U know what we expect without asking. Thanks for another great tutorial👏
All i can say is
This Guy Is Awesome!!!
no pasting of codes gotten from God knows where. So Nice
One of the best tutorial on UA-cam about Chopper. Thank you for your handwork for us and we all appreciate your kindness. Thank you.
Get to da choppa!
Ahhh! I was on the fence of saying it somewhere in the tutorial, but I opted not to 😢 I guess I'm not a meme master like you 😂
GET DOWN...
the file is not beign created
Hi Matt, again awesome video series! Well Done! I would really appreciate a Part 4 about Authentication and Headers :)
If you have problem this row: builder: (_) => PostApiService.create(),
replace 'builder' with 'create': create: (_) => PostApiService.create(),
It's all because of the 4th version of provider (Reso coder uses 3rd version in his video)
You can check more Provider documentation here: pub.dev/packages/provider
trank you for this
Could you show how to use 2 or more ChopperServices within the same ChopperClient? I'd like to have a custom converter for each of the ChopperServices.
Thanks. I enjoyed this!
Is Chopper in your opinion any better than Dio? I haven't used Dio but it has way more stars.
Thank you! I love this tutorial!
I have been following you in kotlin tuts, now i am happy that you also decided to use flutter as i do, we need another video of dealing with chopper while posting data, when is it coming out?
Thanks a lot for tutorial. But I have a question. How to provide ApiService using flutter_bloc and bloc lib? is it possible? and how to dispose it?
I am also on the same boat, did you find any resources on how to do this?
Thanks for this great tutorial.
I tried chopper in one of my project and is working great. I'm a beginner in flutter development.
Now I'm trying to implement bloc pattern for the same project, following your bloc tutorial on weather app ofcourse 😀.
But one thing I can't figure out is, where to initialise chopper and where to dispose it.
My app is a shopping cart. So far I have loaded list of products from my own API (without bloc).
Now I want to use bloc for the same and later I have to show details of single product too.
Another problem I faced was when device is not online, widget shows null pointer exception. I handed that case by showing no internet in a text widget. I also tried adding a retry button, but when I call bulid(context) in the onPressed, nothing happens. What method should I call to reload the page? I'm using stateless widgets only. I didn't find the need to use stateful widget so far in this app.
it clearly seems that you need to modify the UI based on a user interaction, which will be to use SF widget so that you call setState() method, which is to notify some values have changed and update the UI
Idk, as to me, too much boilerplate code for the generator. Just write a few lines more and you can easily go without any choppers. I think code generator must do all this work itself, e.g. as OpenAPI does. OpenAPI has its problems also but you literally need to pass it only a swagger URL and it will generate all the classes on its own
We don't know which way to go with Android Development these days. Java, Kotlin, Flutter. Also google hacking together stupid libraries like the Paging library (which is a complete mess) does not help at all. What is your recommendation?
Which one did you chose? And which one would you recommend me?
How to send multipart request wilt multiple values like image and strings etc ,please ?
did you find the solution?
You are doing a greate job men!
why does not put any example on multipart requests?
if " flutter packages pub run builder_runner watch" doesn't work,
add:
analyzer:
in pubspec.ymal file in dependecies section below provider:
Thanks, this did the trick. Most useful comment on here.
Really, I would like to thank you for you video and sharing those info with us but I wish if you could show us how to integrate Woo-commerce REST API With Flutter App and make Wordpress as backend system for my App?
give error
The argument type 'Widget Function(BuildContext)' can't be assigned to the parameter type 'Widget Function(BuildContext, Widget)'.
on
return Provider(
builder: (_) => PostAPiService.create(),
dispose: (context, PostAPiService service) => service.client.dispose(),
);
Thanks for awesome tutorial. Please, can you help with a role-based authentication login tutorial that displays different drawer navigation bar for different users (e.g Student, Teacher, Parent)?
how to add interceptors to log the send and get requests
Many of http api needs the use of headers providing a cookie one gets with an initial call, is in your plan to analyze the way one can obtain a cookie and use it during any calls? Thank you
Hi, I don't know why I got this error, like chopper_generator:chopper_generator on lib/network/model/api_services.dart:
Missing "part 'api_services.chopper.dart';", Please help me. when I use the command flutter packages pub run build_runner watch
form Android Studio, I had change the analyzer part also but no luck.
The filenames must be the same apart from the .chopper.dart. So if you have api_services, your part needs to be api_services.chopper.dart
Great tutorial man!
so now i need to learn chopper after learning Dio and http??
Do you so think bloc is better then provider?
Awesome tutorial! What theme are you using?
Hi,
how to solve CERTIFICATE_VERIFY_FAILED error while performing a POST request?
can u provide documentation for chopper i searched it but couldn't find it
The sad thing is, there is currently no documentation outside of this tutorial. I honestly don't know why the author of this package doesn't make any docs.
@@ResoCoder oh!!!!! thank u for your fast reply and waiting for next tutorial ...
can you please do a tutorial on dio package
Nice tutorial!
How to implement this with Clean Architecture + TDD
nyc explaination
i am receiving "Invalid argument(s): Path must be absolute " error :( whenever i run "flutter packages pub run build_runner build" command
I got that error too as I was recording a new tutorial today and I almost plucked my hair out!
What you need to do is to go to the pubspec.*lock* file (not yaml) and change the analyzer version to "0.38.2". I don't know why they push out broken code, but hey, that's how it is. I hope this solves the issue for you.
@@ResoCoder Yeah it solved my problem! Thank you bro. If we weren't far away, I'd buy a coffee for you :D
Thx. But how did post method know value should be 101. Where is it keeping the length of posts?
is there any way so that i can cancel by http request
what`s name this color theme vs code???
love this channel
Why did you decide to make create a static method and not a factory constructor?
Factory constructors and generated classes don't go well together. It's easier with a static method, you'll get errors otherwise.
@@ResoCoder would you be willing to post a resource or go more in depth on why it causes errors. Iirc, in your built value tutorial we used a factory constructor but not in this one.
I'm not sure to be honest. If you try it yourself, Dart will simply indicate a compile time error.
Class Act Masterpiece
the file is not beign created
good job
When are we getting more Kotlin tutorials?
Once Jetpack Compose is considered stable-ish.
im happy with flutter ;)
Perfect man
Hi, Reso Coder
I often watch your videos on UA-cam and I am a coder from china
I am a beginner of flutter and recently, I had a problem about flutter, there is a discuss on github github.com/flutter/flutter/issues/11655,
I am so confuse about this problem, and I download one of your tutorial project, I found the same problem, the tutorial project is flutter-chopper-tutorial-course, the problem is in the PostList when I navigator to PostDetail, the PostList will fetch data again, that mains build has been trigger, and I back to PostList, it fetch again! I think this is a big problem, please help me
Responded through email 📧
first, thank you very much for the video, I liked this video because I really appreciate your time and effort.
but for me, this is not practical at all. we expect to save time and simplify our code, not to write sooooo much complex boilerplate code
Boss
How to send multipart request wilt multiple values like image and strings etc ,please ?