Skip to content
pubscout

world_info_plus

1.0.1, released 2 years ago by softable.me

Detailed information about 250 countries including dial codes, time zones, and localized names.

WASM-ready
$ flutter pub add world_info_plus
Source repository

What it does

Provides data on 250 countries, such as calling codes, time zones, ISO codes, and flag image paths. It can automatically resolve country information based on the device locale and load localized country names.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a comprehensive country database including dial codes, time zones, and ISO codes.
  • You need to display localized country names matching the device's locale.

Skip it when

  • You only need a simple phone input field with country pickers (use intl_phone_field instead).

Strengths

  • Covers 250 countries with extensive properties like capital, continent, currency, and flags.
  • Supports automatic device locale detection and optional localized country names.

Weaknesses

  • Requires an asynchronous initialization call (initializeLocalizedName) if you want to use localized names.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Optionally call await initializeLocalizedName() in your main function before running the app if you need localized names.

import 'package:world_info_plus/world_info_plus.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await initializeLocalizedName();
  runApp(const MyApp());
}

// Basic Usage
List<Country> countries = WorldInfoPlus.countries;
Country? countryUS = WorldInfoPlus.getCountryByAlpha2('US');

Alternatives

Packages that do the same job and could replace world_info_plus.

  • intl_phone_field

    If your primary goal is a form field for entering international phone numbers with a country code picker.

  • devicelocale

    If you only need device locale detection without the full country information database.