country_city_kit 1.1.1 copy "country_city_kit: ^1.1.1" to clipboard
country_city_kit: ^1.1.1 copied to clipboard

A lightweight Flutter package for countries, states, and cities.

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

πŸš€ 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.

1
likes
155
points
249
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter package for countries, states, and cities.

Repository (GitHub)
View/report issues

Topics

#country #city #state #flutter #location

License

MIT (license)

More

Packages that depend on country_city_kit