country_state_selector 1.0.1 copy "country_state_selector: ^1.0.1" to clipboard
country_state_selector: ^1.0.1 copied to clipboard

A Flutter package for selecting country and state with a smooth dropdown and search functionality.

example/main.dart

import 'package:flutter/material.dart';
import 'package:country_state_selector/country_state_selector.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 Picker')),
        body: CountryStatePicker(
          onSelected: (country, state) {
            print('Selected Country: $country, State: $state');
          },
        ),
      ),
    );
  }
}
3
likes
150
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for selecting country and state with a smooth dropdown and search functionality.

Repository (GitLab)
View/report issues

Topics

#country-picker #state-selector #country-state-selector #country-state-flutter

Documentation

API reference

License

MIT (license)

Dependencies

flutter, google_fonts

More

Packages that depend on country_state_selector