Search packages, repositories and app categories

country_list_pick cover
Package detailsv1.0.1+6

country_list_pick

Flutter plugin project to pick country code, will show code country, dial code, flag country, and name country.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
24
Likes
135
Pub points
130

Install package

flutter pub add country_list_pick

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin that enables users to select a country from a comprehensive list, displaying the country's flag, name, country code, and dial code. Designed for seamless integration into forms requiring international phone number input or location selection, it supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. The package simplifies country selection with an intuitive interface and provides essential data for global applications.

Use cases

  • International phone number input
  • User location selection
  • Global form fields
  • Multi-language app localization
  • Travel or shipping address forms

Key features

  • Displays country flags
  • Shows country names and codes
  • Includes dial codes
  • Supports multiple platforms
  • Easy integration with text fields

Suitable for

  • Apps requiring country selection
  • Phone number input forms
  • Global user onboarding
  • Travel and logistics apps
  • Multinational e-commerce platforms

Considerations

  • Requires internet for full flag loading (if using remote images)
  • May increase app size due to flag assets
  • Limited customization options for UI
  • Not optimized for very large country lists
  • Depends on external source for country data

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

country list pick

Flutter plugin to pick country with output name, code, dialcode and flag of country

Usage

To use this plugin, add country_list_pick as a dependency in your pubspec.yaml.

    CountryListPick(
        appBar: AppBar(
          backgroundColor: Colors.blue,
          title: Text('Choisir un pays'),
        ),
        
        // if you need custome picker use this
        // pickerBuilder: (context, CountryCode countryCode){
        //   return Row(
        //     children: [
        //       Image.asset(
        //         countryCode.flagUri,
        //         package: 'country_list_pick',
        //       ),
        //       Text(countryCode.code),
        //       Text(countryCode.dialCode),
        //     ],
        //   );
        // },

        // To disable option set to false
        theme: CountryTheme(
          isShowFlag: true,
          isShowTitle: true,
          isShowCode: true,
          isDownIcon: true,
          showEnglishName: true,
        ),
        // Set default value
        initialSelection: '+62',
        // or
        // initialSelection: 'US'
        onChanged: (CountryCode code) {
          print(code.name);
          print(code.code);
          print(code.dialCode);
          print(code.flagUri);
        },
        // Whether to allow the widget to set a custom UI overlay
        useUiOverlay: true,
        // Whether the country list should be wrapped in a SafeArea
        useSafeArea: false
        ),

To call feedback or getting data from this widget, you can make function in onChanged

Special Thanks
  • Salvatore Giordano, CountryCodePicker CountryCodePicker
  • @tomrozb and @dev-fema for changelog 1.0.0+3
  • @giaotuancse for changelog 1.0.0+4
  • @joshuachinemezu for changelog 1.0.0+6 - 1.0.0+8
  • @u-gin for chaangelog 1.0.0+9
  • @imurnane for chaangelog 1.0.1+1
  • @jpainam for chaangelog 1.0.1+2
  • @d00rman for chaangelog 1.0.1+3
  • @MohammadKashaniJabbari for chaangelog 1.0.1+4

Categories

Source repository

Projects using this package

No data available yet.