weather today: a weather app built with mobx and the metaweather api
this project is my first one build in flutter, and i was inspired by the flutter modular architecture to structure the folders:
the project uses the metaweather api to fetch a list of cities and their respective weather data such as minimum and maximum temperature, weather state, date, wind speed and direction.
installing the project
you can install this app on your android phone downloading the apk file weather-today.apk
in this repository.
app overview
the application is pretty simple, it is a one page application with a search bar and it has mainly three states: the first screen when the user is not searching anything, the main screen that shows the user data fetched from the api, and an error screen in case something wrong happens.
app structure
this app was made as an extension of the terminal app built in the dart complete course from andrea bizzotto on udemy, but as i transformed it into a flutter app, i felt the need of a project architecture. for that reason i chose to sctucture my project based on the flutter modular architecture, because i find it easy to understand and also scalable.
the project folders are structured like this:
/lib
/models
/modules
/search
/repositories
/results
/theme
inside models
you can find the classes created to best represent data from the api.
modules
are the pages inside the app and since it is a unique page application, we only have the search module. inside it we have the repository
, responsible for fetching data from the api.
packages used in this project
credits
this project was made inspired by the app built on the dart complete course by andrea bizzotto.
i have to thank the girls from flutter girls who always support and help me in every issue i bump into, you are the best!
Comments are closed.