restcountries 0.0.2

Dart native
Flutter Android iOS

A library to load countries, states/regions, and cities.

A library to get countries, state/region, and cities.

This library will help you out to get the ease of loading countries, state/regions, and cities from http://battuta.medunes.net. So before you use this library, make sure you already have the API key obtained on the website. Once you have that, you shall use this library freely.

Usage #

A simple usage example:

import 'package:restcountries/restcountries.dart';

main() async {
  var api = RestCountries.setup("YOUR_API_KEY");
  List<Country> countries = await api.getCountries();
  // see example for more details
}

Functionality #

Use CaseSupported
Get All CountriesYes
Get all regions based on country codeYes
Get all cities based on regions and country codeYes
Search CountryYes
Search regionYes
Check Quota (http://battuta.medunes.net)Yes
Get postal codeNo

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
55
pub points
72%
popularity

A library to load countries, states/regions, and cities.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

mgufronefendi@gmail.com

License

GPL 3.0 (LICENSE)

Dependencies

dio

More

Packages that depend on restcountries