Skip to content

Repository files navigation

Weather App

A sophisticated Flutter-based weather application designed to provide users with real-time weather information by city name. Leveraging the Bloc pattern for robust state management, the app seamlessly integrates with a weather API to deliver accurate and up-to-date weather data.

Key Features

  • City-Based Weather Search: Users can effortlessly search for weather information by entering a city name.
  • Error Handling: Robust error handling ensures a smooth user experience, even in the event of failed API requests.

Technologies

  • Programming Language: Dart
  • Frameworks: Flutter
  • State Management: Bloc

Project Structure

The project is organized to ensure clarity and maintainability:

lib/
├── cubits/                 # Bloc cubits for state management
│   └── get_weather_cubit/
│       ├── get_weather_cubit.dart
│       └── get_weather_states.dart
├── models/                 # Data models
│   └── weather_model.dart
├── screens/                # UI screens
│   ├── no_weather_screen.dart
│   └── search_screen.dart
└── main.dart               # Application entry point

Getting Started

Prerequisites

Before you begin, ensure you have the following installed:

Installation

Follow these steps to set up the project locally:

  1. Clone the repository:

    git clone https://github.com/yourusername/weather_app.git
    cd weather_app
  2. Install dependencies:

    flutter pub get
  3. Run the app:

    flutter run

Usage

  1. Launch the application on your device or emulator.
  2. Enter the desired city name in the search field.
  3. View the current weather conditions for the specified city.

Contributing

We welcome contributions from the community! To contribute, please follow these steps:

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

Please ensure your code adheres to our coding standards and includes appropriate documentation.

License

This project is licensed under the MIT License. For more details, see the LICENSE file.

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages