Git Product home page Git Product logo

simplyweather's Introduction

Simply Weather

A flutter project built to help understand how flutter works for mobile application development and to help figure out design patterns.

Currently the app is architected as follows:

Architecture Diagram

BLoC Pattern

This App is using the BLoC pattern to ensure that the widgets do not contain any business logic. The BLoC pattern when coupled with Streams in flutter is a powerful tool when it comes to separating out business logic from widgets.

Provider (future update)

This works out well for the most part, with the only exceptionbeing that the Location Service needs to be able to update the BLoC data when the location changes. Currently I have implemented this via a stream that the BLoC subscribes too, this seems to create a bit of a mess that I believe could be solved with via the Change Notifier available in flutter. In a future update I will be converting the Location Service to be a provider in this pattern to avoid these weird cases.

Getting Started

In order to run this application you will need to create a file with the following constants:

const String OPEN_WEATHER_API_KEY = "";
const String MAPBOX_API_KEY = "";

These keys will need to be populated with keys created from the following sources (don't worry this is all free):
Open Weather
Map Box

These API's are used to get weather and map information show in the app.

simplyweather's People

Watchers

James Cloos avatar Will Metz avatar

Forkers

mitchross

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.