I am trying to refactor my Flutter weather application.
It eventually calls an API to provide weather data based with a location as a parameter.
Currently, I have :
I very much doubt this the most efficient way to do it, but can't find how to properly implement my calls.
Should it be more APICallClass into ResponseHandlerClass into ProviderClass ?
Thank you !
TLDR; How to implement API calls and JSON parsing following SOLID principles ?
One of the best tutorials on this topic in flutter (in my opinion) can be found here:
https://github.com/ResoCoder/flutter-tdd-clean-architecture-course
There is also a written series and a 7 hour YouTube Tutorial of this:
Here is the architectur proposal: