Skip to content

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