Working with RESTful APIs and making HTTP requests is the bread and butter of almost every developer. If you’re coming from Android, you probably know about Retrofit. iOS developers, as I’m told, have the Alamofire library.

On Flutter though, you usually use the http package or something like dio. Although these packages do an awesome job, they still leave you working at the lowest level. The question arises - what can we, Flutter developers, use to simplify our work with HTTP APIs? Chopper!

Chopper is a library which, besides other things, generates code to simplify the development process for us. In addition to Chopper itself, we are going to use the Provider package to make InheritedWidget syntax simple.

#flutter #dart #developer

Chopper (Retrofit for Flutter) - Basics - Dart HTTP Client Generator Tutorial
19.60 GEEK