country_city_kit

A lightweight and easy-to-use Flutter package for accessing countries, states, and cities data.


Preview

Preview


Screenshots

Select Country Select State / City Selected Result
Select Country Select State / City Selected Result

✨ Features

  • 🌍 Get all countries
  • πŸ™οΈ Get states by country
  • πŸ“ Get cities by state
  • ⚑ Lightweight and fast
  • 🧩 Simple API
  • πŸ’™ Flutter friendly
  • 🚫 No external dependencies alt text alt text alt text

πŸš€ Installation

Add this to your pubspec.yaml:

dependencies:
  country_city_kit: ^1.0.0

Then run:

flutter pub get

πŸ“¦ Import

import 'package:country_city_kit/country_city_kit.dart';

πŸ› οΈ Usage

Get All Countries

final countries = await CountryCityKit.getCountries();

print(countries);

Get States by Country

final states = await CountryCityKit.getStates('Bangladesh');

print(states);

Get Cities by State

final cities = await CountryCityKit.getCities(
  country: 'Bangladesh',
  state: 'Dhaka',
);

print(cities);

πŸ“‹ Example Output

[Bangladesh, India, Pakistan]

πŸ’» Platform Support

Platform Supported
Android βœ…
iOS βœ…
Web βœ…
Windows βœ…
macOS βœ…
Linux βœ…

πŸ—ΊοΈ Roadmap

  • Country flag support
  • ISO code support
  • Phone code support
  • Search functionality
  • Country picker widgets
  • Localization support

🀝 Contributing

Contributions are welcome!

Feel free to open issues or submit pull requests on GitHub.


πŸ“„ License

This package is licensed under the MIT License.

Libraries

country_city_kit
A lightweight country-to-city/state lookup package.