A basic application that displays current weather information for a given location.
This project is a starting point for a Flutter application implementing Clean Architecture
-
Open your terminal or command prompt.
-
Use the following command to clone the WeatherApp repository:
git clone https://github.com/ptantai/weather-forecast-app.git
cd weather-forecast-app
flutter pub get
flutter pub run build_runner build
-
Connect your device or start an emulator.
-
To build and run the project, use the following command:
flutter run
or simply press F5 key
if you are using VSCode
This will build the project and install it on your connected device or emulator.
lib
├── application.dart
├── data
│ ├── data_source
│ │ ├── data_source.dart
│ │ ├── weather_api.dart
│ │ └── weather_api.g.dart
│ ├── entity
│ │ ├── weather.dart
│ │ └── weather.g.dart
│ ├── repository
│ │ └── weather_repository.dart
│ └── services
│ ├── dio
│ │ └── dio_client.dart
│ ├── error_handler.dart
│ └── interceptors
│ └── connectivity_interceptor.dart
├── domain
│ ├── entity
│ │ └── weather.dart
│ ├── repository
│ │ └── weather_repository.dart
│ └── usecase
│ └── get_weather_usecase.dart
├── main.dart
├── presentation
│ ├── weather_screen
│ │ ├── bloc
│ │ │ ├── weather_bloc.dart
│ │ │ ├── weather_event.dart
│ │ │ └── weather_state.dart
│ │ └── weather_screen.dart
│ └── welcome_screen.dart
├── resources
│ └── generated
│ └── assets.gen.dart
└── utilities
├── constants.dart
└── debouncer.dart