Skip to content

mattrltrent/clean_architecture_example_app

Repository files navigation

Flutter weather app (simple, meant to showcase clean architecture)

Note: some elements of the project exist but aren't used. For example, multiple screens. The router exists for the sole purpose of showing it is possible.

Cloning and running

  • Clone the project to your local machine by running the command git clone <project_url_here>.
  • Inside the project's root directory, run flutter pub get. This will retrieve the project's dependencies.
  • Navigate to root > lib > features > weather_data > data > datasources > weather_remote_data_source.dart and add your free API key from OpenWeatherMap to the API_KEY constant.
  • From the project's root directory, run flutter run --no-sound-null-safety. The latter flag is because a package the project depends on hasn't yet been upgraded to null safety.
  • Your app should now be running!

Additional note

This project closely echos Reso Coder's tutorial series on clean Flutter architecture. However, it differs in a few ways: not a trivia app, uses CUBIT instead of BLOC, doesn't include testing, and doesn't cache API results (weather data needs to be live).

About

Simple-as-can-be weather app to showcase clean archiecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published