Skip to content

Instantly share code, notes, and snippets.

@imtoori
Last active September 7, 2020 20:36
Show Gist options
  • Save imtoori/ca9b6c611b89de9d9d44563e1c024977 to your computer and use it in GitHub Desktop.
Save imtoori/ca9b6c611b89de9d9d44563e1c024977 to your computer and use it in GitHub Desktop.

Build a weather Flutter package

The goal for this at-home assignment is to build a Flutter package that exports one or more widgets for showing a weather forecast.

Requirements

  • 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

Bonus points

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment