currency_pickers 1.0.5

  • Readme
  • Changelog
  • Installing
  • 79

currency_pickers #

Currency picker for flutter

CountryPickerDropdown example #
            initialValue: 'tr',
            itemBuilder: _buildDropdownItem,
            onValuePicked: (Country country) {
 Widget _buildDropdownItem(Country country) => Container(
        child: Row(
          children: <Widget>[
              width: 8.0,
CountryPickerDialog example #
void _openCountryPickerDialog() => showDialog(
        context: context,
        builder: (context) => Theme(
            data: Theme.of(context).copyWith(primaryColor:,
            child: CountryPickerDialog(
                titlePadding: EdgeInsets.all(8.0),
                searchCursorColor: Colors.pinkAccent,
                searchInputDecoration: InputDecoration(hintText: 'Search...'),
                isSearchable: true,
                title: Text('Select your phone code'),
                onValuePicked: (Country country) =>
                    setState(() => _selectedDialogCountry = country),
                itemBuilder: _buildDialogItem)),
CountryPickerCupertino example #
 void _openCupertinoCountryPicker() => showCupertinoModalPopup<void>(
      context: context,
      builder: (BuildContext context) {
        return CountryPickerCupertino(
          pickerSheetHeight: 300.0,
          onValuePicked: (Country country) =>
              setState(() => _selectedCupertinoCountry = country),

Credits #

Forked from country_pickers repo. Thanks goes to country-flags repo for the flag image assets.

[1.1.0] - 04/26/2019

  • Fix issue #12 - Fix background color setting for CountryPickerCupertino. Thanks @rhmoeller

  • Fix filtering issue for CountryPickerCupertino.

  • Fix Update for iPhone X UI issues with safe-area. PR #13 Thanks @dhavalagile

[1.0.4] - 04/14/2019

  • Fix issue #7 - Add iso3Code. Thanks @endigo

[1.0.3] - 04/12/2019

  • Fix issue #9 - Ability to filter countries. Thanks @ened

[1.0.2] - 03/27/2019

  • Fix issue #6 Thanks @rafe211
  • Fix documentation error. PR #3 Thanks @GeertJohan

[1.0.1] - 10/09/2018

  • CountryPickerDropdown's onValuePicked doesn't feel useless anymore. [Thanks Solomon Nsumei @solnsumei]

[1.0.0] - 9/22/2018

  • Initial release 🎉
  • CountryPickerDropdown
  • CountryPickerDialog
  • CountryPickerCupertino
  • Country flag image assets and list of maps which has country name, iso code, phone code.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  currency_pickers: ^1.0.5

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:currency_pickers/currency_pickers.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/countries.dart.

Run flutter format to format lib/countries.dart.

Format lib/country.dart.

Run flutter format to format lib/country.dart.

Format lib/currency_picker_cupertino.dart.

Run flutter format to format lib/currency_picker_cupertino.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/currency_picker_dialog.dart (Run flutter format to format lib/currency_picker_dialog.dart.)
  • lib/currency_picker_dropdown.dart (Run flutter format to format lib/currency_picker_dropdown.dart.)
  • lib/utils/utils.dart (Run flutter format to format lib/utils/utils.dart.)

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and currency_pickers.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies