Skip to content
pubscout

country_calling_code_picker

2.0.1, released 5 years ago by an unverified publisher

Searchable country picker widget for selecting country and calling code

WASM-ready
$ flutter pub add country_calling_code_picker
Source repository

What it does

Provides UI widgets and utility functions to pick a country, show dialog or bottom sheet, and retrieve country data.

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

Use it when

  • Need a country picker in forms
  • Need to get user's default country
  • Need to display a list of countries with flags

Skip it when

  • You need a custom picker with a different UI
  • You only need country data without UI

Strengths

  • Easy to integrate
  • Supports dialog, sheet, and full screen usage
  • Includes utility functions for default country and country list

Weaknesses

  • Limited styling customization beyond provided options
  • Only handles country calling codes, not full phone number formatting

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
```dart
import 'package:country_calling_code_picker/picker.dart';

void _showCountryPicker() async {
  final country = await showCountryPickerSheet(context);
  if (country != null) {
    setState(() {
      _selectedCountry = country;
    });
  }
}
```

Alternatives

Packages that do the same job and could replace country_calling_code_picker.

  • re_editor

    A lightweight text and code editor widget for Flutter with syntax highlighting and folding.

  • country_picker

    A Flutter widget to pick a country from a list with optional phone code and search.

  • country_flags

    Displays country flags as SVG or emoji using ISO country, language, currency, or phone prefix codes

  • canopas_country_picker

    A simple customizable Flutter widget for picking a country or dialing code with search support.