country_state_city 0.1.1 copy "country_state_city: ^0.1.1" to clipboard
country_state_city: ^0.1.1 copied to clipboard

outdated

A flutter package to display list of Countries, States and Cities depends on a given country

example/lib/main.dart

// ignore_for_file: unused_local_variable

import 'package:country_state_city/country_state_city.dart';

void main() async {
  // Get all countries
  final countries = await getAllCountries();
  // Get all states
  final states = await getAllStates();
  // Get all cities
  final cities = await getAllCities();

  // Get a country
  final country = await getCountryFromCode('AF');
  if (country != null) {
    final countryStates = await getStatesOfCountry(country.isoCode);

    final countryCitis = await getCountryCities(country.isoCode);
  }
}
27
likes
0
pub points
94%
popularity

Publisher

unverified uploader

A flutter package to display list of Countries, States and Cities depends on a given country

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on country_state_city