Skip to content

talhakerpicci/cities-of-the-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cities Of The World

A Flutter application that displays cities from around the world, with features for searching, viewing on a map, and managing search history.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Flutter 3.24.3

Architecture

This project follows Clean Architecture principles, organized into three main layers:

  • Data Layer: Handles external interactions (API calls, local storage)
  • Domain Layer: Contains business logic and models
  • Presentation Layer: Manages UI components and state

The project uses the BLoC pattern (specifically Cubit) for state management, providing a clean separation between UI and business logic.

Project Structure

The project is organized as follows:

lib/
├── core/
│   ├── constants/
│   ├── errors/
│   └── utils/
├── data/
│   ├── datasources/
│   │   ├── local/
│   │   └── remote/
│   └── repositories/
├── domain/
│   ├── models/
│   └── repositories/
├── presentation/
│   ├── cubits/
│   └── pages/
└── di/

Dependencies

  • dio: For making HTTP requests.
  • hive: For local data storage.
  • get_it & injectable: For dependency injection.
  • flutter_bloc: For state management.
  • freezed: For generating immutable data classes and utility methods.
  • flutter_map: For displaying maps.
  • world_countries: For country flags.

Getting Started

To get a local copy up and running, follow these steps:

  1. Clone the repository:
git clone https://github.com/talhakerpicci/cities-of-the-world
cd cities-of-the-world
  1. Install dependencies:
flutter pub get
  1. Generate code:
flutter pub run build_runner build --delete-conflicting-outputs
  1. Run the app:
flutter run

Screenshots

Demo Video

For a full app walkthrough, check out the demo video below:

Demo Video

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages