country_state_city_dropdown 0.1.2 copy "country_state_city_dropdown: ^0.1.2" to clipboard
country_state_city_dropdown: ^0.1.2 copied to clipboard

A customizable Flutter package for searchable, cascading Country, State, and City dropdowns using JSON data.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:country_state_city_dropdown/country_state_city_dropdown.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Country State City Picker')),
        body: Padding(
          padding: const EdgeInsets.all(16.0),
          child: CountryStateCityPicker(
            onCountryChanged: (country) => print("Country: ${country.name}"),
            onStateChanged: (state) => print("State: ${state.name}"),
            onCityChanged: (city) => print("City: ${city.name}"),
            spacing: 10,
          ),
        ),
      ),
    );
  }
}
1
likes
160
points
73
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter package for searchable, cascading Country, State, and City dropdowns using JSON data.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on country_state_city_dropdown