country_list 0.0.2 copy "country_list: ^0.0.2" to clipboard
country_list: ^0.0.2 copied to clipboard

outdated

A dart library provides a list of country data like Country Name (`name`), Country Phone Dial Code (`dial`), Country Alpha-2 Code (`alpha2`).

country_list #

A dart library provides a list of country data like Country Name (name), Country Phone Dial Code (dial), Country Alpha-2 Code (alpha2).

Getting Started #

Install #

pubspec.yaml
country_list: <latest_version>

Usage #

import 'package:country_list/country_list.dart';

.....

ListView.builder(
    itemCount: Countries.list.length,
    itemBuilder: (_, position) {
        Map<String, String> country = Countries.list[position];
        return ListTile(
        leading: Text(country['dial'] ?? ''),
        title: Text(country['name'] ?? ''),
        subtitle: Text(country['alpha2'] ?? ''),
        );
    },
),
6
likes
0
pub points
84%
popularity

Publisher

verified publishercrawlink.com

A dart library provides a list of country data like Country Name (`name`), Country Phone Dial Code (`dial`), Country Alpha-2 Code (`alpha2`).

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on country_list