The goal for this at-home assignment is to build a Flutter package that exports one or more widgets for showing a weather forecast.
- External libraries can be used, but they should not be related to any weather api
- Handle all errors
- You can use whatever weather api, but make sure that the widget accepts an api key as a parameter.
- Do not publish the package to pub.dev, but upload it to a git repository so that it’s possible to use it as a git dependency.
The widget should
- Accept a date as parameter
- Accept a location (latitude, longitude) as a parameter
- Show an icon that tells the current weather
- Show the temperature
- Make the user able to use only the business logic of the package and build their own UI
- Write full test coverage for your code
- Build the package in a way that is easy to use and understand for other developers
- Showcase the widget in a sample app in the /example folder of the project
- Implement a caching mechanism of your choice that reduces API usage