country_list 0.0.2 country_list: ^0.0.2 copied to clipboard
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'] ?? ''),
);
},
),