A Weather App Project
- OS: Windows
- RAM: 16GB
- OS Version: 11
Install Android Studio Latest Version [Android Studio Chipmunk | 2021.2.1 Patch 2]
https://developer.android.com/studioDownload Flutter
https://docs.flutter.dev/get-started/installClone Project
git clone https://github.com/randomlee101/flutter-weather-app.gitOpen Project In Android Studio
- Open Android Studio
- File > Open
- Proceed To The Location of The Cloned Repository and Select The Root Folder
N.B: Install Dart and Flutter Plugins From Android Studio Market Place
Install All Packages Used For The Project
flutter pub getAuto-generate Models Using Freezed
flutter pub run build_runner build --delete-conflicting-outputsStateless widgets were employed across board to ensure a well-optimised application
States of children widgets were managed with Streams from the rxdart implementation and the get_it instance
Connect a virtual or physical device to Android Studio then run the following command in the terminal
flutter run Per the requirement to display the current location, there was a roadblock fetching the full location description as it was not available with the returning data from the weather api.
However, the integration of Google Maps API will tackle this issue successfully
The geolocator package was installed in this project for setting real-time longitude and latitude of the user.
For simplicity, longitude (lon) and latitude (lat) were hard-coded in the weather_forecast_request.dart file as params
Due to the quality of the weather_icons image files, the image assets were wrapped in a ImageIcon widget and given a static color, yellow (I'm not too sure of that color decision) to give it more pop
Thank you for reviewing this project! Recommendations and feedbacks are welcome and can be directed to the author below.
Daniel Folorunso | folorunsodaniel5@gmail.com