custom_countries_list 0.0.1 copy "custom_countries_list: ^0.0.1" to clipboard
custom_countries_list: ^0.0.1 copied to clipboard

A custom flutter widget to allow users select their countries.

This is a Flutter custom country picker widget, which uses platforms specific picker components to show countries to the users.

n1 n1

Features #

Currently have only country selections and displaying country data like name, dia_code, code and flag.

Getting started #

Add the package to your pubspec.yaml:

custom_countries_list: 0.0.1

In your dart file, import the library:

import 'package:custom_countries_list/custom_countries_list.dart';

Show country picker using showCountryList:

showCountryList(
  context: context,
  onCountrySelected: (country) {
    if (kDebugMode) {
        print('selected country ${country?.name}');
      }
    },
  height: 400.0,
 );

Usage #

In your dart file, import the library:

import 'package:custom_countries_list/custom_countries_list.dart';

Show country picker using showCountryList:

showCountryList(
  context: context,
  onCountrySelected: (country) {
    if (kDebugMode) {
        print('selected country ${country?.name}');
      }
    },
  height: 400.0,
 );

Additional information #

The package is open to contribution, I will be adding more update to it. This is the first feature. You can also tell me what you want to see next.

1
likes
140
pub points
23%
popularity

Publisher

verified publisherkosidev.com

A custom flutter widget to allow users select their countries.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_countries_list