Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get weather by location feature added #9

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Ayman-tron
Copy link

@Ayman-tron Ayman-tron commented Sep 30, 2023

Description

This pull request introduces a new feature that allows users to retrieve weather information based on their current location. It adds the "Get Weather by Location" functionality to the project.

However, please note that when the user clicks on the weather icon, the weather information is not currently displayed instead the weather description will be shown. I am not familiar with the freezed package and figured it should be a quick fix by the author, weather.dart need to be updated so that cityName is fetched from the API request. I'm happy to provide assistance or collaborate on resolving this issue.

Changes Made

  • Added a prefix icon on search bar
  • Added a new function getWeatherByLatLan along with providers in the weather feature.
  • Integrated the Geolocation package to fetch the user's latitude and longitude.
  • Utilized the retrieved location data to make a request to the OpenWeatherMap API to obtain weather information for the user's location.

Dependencies

Geolocator package added

Reviewer Requests

  • Requesting a code review from @bizz84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant