An Weather App to check the weather around the world!
Table of Contents
About the Project
"Weatrio App" is an Weather Application that allows you to check the weather in different cities around the world.
Here is the code folder structure.
weatrio/ |- android |- ios |- build |- lib/ |-- screens |-- serivces |-- utilities |- fonts |- images
Now, lets dive into the lib folder which has the main code for the application.
constants.dart - All the application level constants. Specifically, this constants.dart file contains theme classes for app widgets.
location.dart - This code implementing the
Location class in order to get current location with Geolocator.
networking.dart - This code implementing the
Network Helper class in order to communicate with OpenWeatherMap API using http protocol and decoding the data which written in json format.
weather.dart - This code implementing the
WeatherModel class in order to retreive weather data from OpenWeatherMap API and modify conditional information according to the data.
city_screen.dart - This code is the welcome screen, where the user need to provide city name. Take a look at the screenshot of this activity at the top.
loading_screen.dart - This code is the loading screen, kind of splash screen that runs until the necessary weather data is received.
location_screen.dart - This code is the location screen, where all the weather data in the requested city is displayed to the user. Take a look at the screenshot of this activity at the top.
Download or clone this repo by using the link below:
Go to project root and execute the following command in console to get the required dependencies:
flutter pub get
Clone the project
git clone https://github.com/ladunjexa/weatrio-app
Go to the project directory
flutter pub get
Start the application
"Weatrio App" rely on an external dependencies and services like OpenWeatherMap API and Geolocator.
Therefore, in order for the application to work correctly, you will need to obtain a free API Key at https://openweathermap.org/
After you get your free API key, look for
weather.dart which located in
Search for the following line, and replace the string with your new API key.
const apiKey = 'INSERT-YOUR-API-KEY-HERE';
Contributions are always welcome!
contributing.md for ways to get started.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature)
- Commit your Changes (
git commit -m 'Add some AmazingFeature')
- Push to the Branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
Distributed under the MIT License. See LICENSE.txt for more information.
Project Link: https://github.com/ladunjexa/weatrio-app
This section used to mention useful resources and libraries that used in Weatrio App project.