This is a simple Flutter Weather Android App, created using the Dart programming language and the Flutter framework. This app uses the OpenWeatherMap API to get the current weather and weather forecasts for a given location.
This app uses the Weather API(https://www.weatherapi.com/) to get the current weather and weather forecasts.
To use this app, you will need to obtain an API key from the Weather API website. Once you have obtained your API key, you will need to add it to the
android/app/src/main/AndroidManifest.xml file as follows:
<application
...
<meta-data
android:name="com.weatherapi.key"
android:value="YOUR_API_KEY" />
...
</application>
To run this app on your local machine, you will need to have Flutter installed. You can download and install Flutter from the official Flutter website.
To run this app, you will need the following:
- Flutter 2.0.0 or later
- Android Studio 4.1 or later
- A mobile device or emulator to run the app on
- An API key from the Weather API website
-
Clone this repository to your local machine using the following command:
git clone https://github.com/0007ishav/Flutter_weather_android_app.git
-
Open the project in VS Code.
-
Install the necessary dependencies by running the following command in the terminal:
flutter pub get
-
Run the app on a connected device or emulator by running the following command in the terminal:
flutter run
When you launch the app, you will be asked to provide your location. You can enter your location manually or allow the app to access your device's location services. The app will then display the current weather for your location, as well as a 5-day weather forecast.
Contributions are welcome. Please submit a pull request if you would like to make any changes to the code.