Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_weather_app

A Flutter weather app that uses the weatherapi.com API to fetch weather data.

Features

  • Fetches current weather data for a specified location.
  • Displays temperature, humidity, wind speed, and weather conditions.
  • Simple and intuitive user interface.

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/yourusername/flutter_weather_app.git
  2. Navigate to the project directory:

    cd flutter_weather_app
  3. Install the required dependencies:

    flutter pub get
  4. Open constants.dart and replace YOUR_API_KEY with your actual API key from weatherapi.com:

    const String apiKey = 'YOUR_API_KEY';
  5. Run the app on your preferred device or emulator:

    flutter run

Project Structure

  • lib: Contains the main source code for the Flutter app.

    • api.dart: Handles API requests to fetch weather data.
    • constants.dart: Contains constant values used throughout the app.
    • homepage.dart: Defines the UI for the homepage.
    • main.dart: Entry point of the application.
    • weathermodel.dart: Defines the data model for weather data.
  • android: Contains the Android-specific files and configurations.

  • ios: Contains the iOS-specific files and configurations.

  • linux: Contains the Linux-specific files and configurations.

  • macos: Contains the macOS-specific files and configurations.

  • web: Contains the web-specific files and configurations.

  • windows: Contains the Windows-specific files and configurations.

  • test: Contains the unit tests for the app.

Dependencies

  • http: A package for making HTTP requests.
  • provider: A package for state management.
  • flutter_launcher_icons: A package for customizing app icons.

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any inquiries or feedback, please contact grefielkent@gmail.com.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages