flutter_contry_picker 0.0.4
flutter_contry_picker: ^0.0.4 copied to clipboard

Countrypicker utils

flutter_contry_picker #

ImageProvider #

getCountryImage(String code) returns the image asset for the flag #

Country #

class Country {
  final String name;
  final String isoCode;
  final String iso3Code;
  final String phoneCode;

  Country({this.isoCode, this.iso3Code, this.phoneCode, this.name});

  factory Country.fromMap(Map<String, String> map) => Country(
        name: map['name'],
        isoCode: map['isoCode'],
        iso3Code: map['iso3Code'],
        phoneCode: map['phoneCode'],

CountryList #

A list of all countries #