Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
370c569
Upgrade follow latest
chandrabezzo Mar 7, 2023
aca22ac
Update version
chandrabezzo Mar 10, 2023
84ed173
Merge pull request #1 from chandrabezzo/feature/follow-latest-flutter
chandrabezzo Mar 10, 2023
32acbb1
docs: update README.md [skip ci]
allcontributors[bot] Mar 10, 2023
e9994c0
docs: create .all-contributorsrc [skip ci]
allcontributors[bot] Mar 10, 2023
7ac2a3d
Merge pull request #3 from chandrabezzo/all-contributors/add-chandrab…
chandrabezzo Mar 11, 2023
d47c3a9
docs: update README.md [skip ci]
allcontributors[bot] Mar 11, 2023
3139f28
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Mar 11, 2023
6ee7de3
Merge pull request #4 from chandrabezzo/all-contributors/add-imtoori
chandrabezzo Mar 13, 2023
684d0c2
(feat): country code picker style (dialog or modal bottom sheet) sugg…
May 10, 2023
4b86567
fix enable/disable not working with custom widget
chhaileng Jul 6, 2023
6ed3872
optional close icon
juanmartin8a Sep 13, 2023
37582ed
search padding and dialog item padding
juanmartin8a Sep 14, 2023
423400e
Merge pull request #12 from chhaileng/main
chandrabezzo Oct 20, 2023
6ec2266
Merge pull request #17 from juanmartin8a/optional-close-icon
chandrabezzo Oct 20, 2023
b777406
Merge pull request #18 from juanmartin8a/custom-dialog-padding
chandrabezzo Oct 20, 2023
484a495
Update country_code.dart
lukas-pierce Apr 14, 2024
d9cf16a
fix
lukas-pierce Apr 14, 2024
4b87e67
Updated The Dart SDK to 3.4.1 and Flutter SDK to 3.22.1
MrRoy121 May 27, 2024
19db652
Added header text to the dialog and updated the image
MrRoy121 May 27, 2024
d67fa41
removed Diacritics
adnan-nazir Sep 3, 2024
f754dc2
Add iso3Code to codes list
kurjakrichard Sep 27, 2024
b99060c
Worked on the margin between flag and the country name and also ensur…
ernestkoko Oct 22, 2024
a4ae3de
Merge pull request #40 from ernestkoko/feature/adding-dynamic-padding…
chandrabezzo Oct 23, 2024
077f37d
Merge pull request #39 from kurjakrichard/main
chandrabezzo Oct 23, 2024
4168003
Merge pull request #30 from lukas-pierce/try-nullable
chandrabezzo Oct 23, 2024
df72607
update
chandrabezzo Oct 23, 2024
6a43ff1
Merge pull request #41 from chandrabezzo/update/3.1.0
chandrabezzo Oct 23, 2024
82acd03
Update lib/src/selection_dialog.dart
MrRoy121 Oct 28, 2024
cd063b3
Update lib/src/selection_dialog.dart
MrRoy121 Oct 28, 2024
a0ec038
Update lib/src/selection_dialog.dart
MrRoy121 Oct 28, 2024
102dd79
Update lib/src/selection_dialog.dart
MrRoy121 Oct 28, 2024
24f5ae8
Update lib/src/selection_dialog.dart
MrRoy121 Oct 28, 2024
5c10b16
Update lib/src/selection_dialog.dart
MrRoy121 Oct 28, 2024
b279411
disabled localization
adnan-nazir Dec 9, 2024
6e6d7dc
Update lib/src/selection_dialog.dart
MrRoy121 Oct 28, 2024
ca8312a
Merge remote-tracking branch 'origin/main'
MrRoy121 Dec 11, 2024
08161e4
Merge remote-tracking branch 'origin/save'
MrRoy121 Dec 11, 2024
c127e4a
Fixed the Issue #43.
MrRoy121 Dec 14, 2024
f61a833
Merge pull request #37 from adnan-nazir/fix_remove_diacritics
chandrabezzo Jan 31, 2025
7055c0f
Merge pull request #44 from MrRoy121/main
chandrabezzo Jan 31, 2025
e082601
Merge branch 'main' into main
chandrabezzo Jan 31, 2025
24580fa
Merge pull request #6 from FulbertoDev/main
chandrabezzo Jan 31, 2025
7f36d14
update
chandrabezzo Jan 31, 2025
308f7b2
Merge pull request #47 from chandrabezzo/update-3.2.0
chandrabezzo Jan 31, 2025
3bbd4e7
Fixed the Issue #50.
MrRoy121 Feb 7, 2025
282ed6e
Fixed the Issue #45.
MrRoy121 Feb 7, 2025
9faf5a7
Fixed the Issue #48.
MrRoy121 Feb 7, 2025
49143d8
Added Proper documentation in Readme.md File.
MrRoy121 Feb 7, 2025
4c64b01
Merge pull request #51 from MrRoy121/main
chandrabezzo Mar 26, 2025
2078ad5
Update version
chandrabezzo Mar 26, 2025
fbc4d9e
Merge pull request #55 from chandrabezzo/fix/version/3.3.0
chandrabezzo Mar 26, 2025
0460f3f
Standardizing the description of various regions in China
Apr 27, 2025
84673f3
Update country_code_picker.dart
ShahanMalik Jul 22, 2025
0a873bd
Update selection_dialog.dart
ShahanMalik Jul 22, 2025
84064c2
fix french translations
Aug 19, 2025
e7896ad
fixing accent removal
Aug 19, 2025
44945e2
Update dart.yml
chandrabezzo Aug 19, 2025
1344c60
Merge pull request #64 from chandrabezzo/chandrabezzo-patch-1
chandrabezzo Aug 19, 2025
9b71ba2
update version number
Aug 19, 2025
85f3ab6
Merge pull request #63 from DomFiume/fix/dfi/french_translation
chandrabezzo Aug 19, 2025
c0a8a00
Merge pull request #57 from bailyzheng/zldev
chandrabezzo Aug 19, 2025
f800e93
Merge pull request #59 from ShahanMalik/patch-1
chandrabezzo Aug 19, 2025
bc3cd98
Merge pull request #60 from ShahanMalik/patch-2
chandrabezzo Aug 19, 2025
864dce4
Update pubspec.yaml
chandrabezzo Aug 19, 2025
0cc1771
Update CHANGELOG.md
chandrabezzo Aug 19, 2025
72d10bc
Merge pull request #65 from chandrabezzo/release-3.4.0
chandrabezzo Aug 19, 2025
1f4a2a0
fix french translations
Oct 8, 2025
95b29a6
netherland antilles removal
Oct 8, 2025
3836cf2
pubspec version upgrade
Oct 8, 2025
749247f
Merge pull request #72 from DomFiume/fix/dfi/french_translations_AND_…
chandrabezzo Oct 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"commitConvention": "angular",
"contributors": [
{
"login": "chandrabezzo",
"name": "Chandra Abdul Fattah",
"avatar_url": "https://avatars.githubusercontent.com/u/16184998?v=4",
"profile": "https://www.linkedin.com/in/chandra-abdul-fattah",
"contributions": [
"infra",
"code"
]
},
{
"login": "imtoori",
"name": "Salvatore Giordano",
"avatar_url": "https://avatars.githubusercontent.com/u/20601437?v=4",
"profile": "https://github.com/imtoori",
"contributions": [
"infra",
"code"
]
}
],
"contributorsPerLine": 7,
"skipCi": true,
"repoType": "github",
"repoHost": "https://github.com",
"projectName": "CountryCodePicker",
"projectOwner": "chandrabezzo"
}
27 changes: 13 additions & 14 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: Publish plugin
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Publish to pub.dev

on:
push:
tags:
- v*
tags:
- '[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Publish
uses: sakebook/actions-flutter-pub-publisher@v1.2.1
with:
credential: ${{ secrets.CREDENTIALS }}
skip_test: true
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
# with:
# working-directory: path/to/package/within/repository
30 changes: 29 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
## 2.0.2
## 3.4.1 - October 08 2025
- Fix French country translations
- Removed Netherlands Antilles from country codes list

## 3.4.0 - August 19 2025
- Fix China translation
- Adding flag autofocus

## 3.3.1 - August 19 2025
- Fix French translation accent display issue
- Correct French country name translations (Biélorussie, Koweït, Grenade, etc.)
- Preserve accents in displayed names while maintaining search functionality
- Update search logic to handle both accented and non-accented input

## 3.3.0 - March 26 2025
- Fix localization, typo, and flag issue #51 thanks to @MrRoy121

## 3.2.0 - January 31 2025
- Add country code picker style #6
- Remove Special Character #37
- Fixes for Flutter and Dart SDK Updates and Enhancements #44

## 3.1.0 - October 24 2024
- Add some improvement

## 3.0.0 - March 10 2023
- Support Flutter 3.7.0
- Restructured package follow linter

## 2.0.2
- added localization for no_country text in italian and english (please open a pr with other languages if you know them 🙏)
- added possibility to inject a custom list of countries using `CountryCodePicker.countryList`
- minor fixes
Expand Down
26 changes: 0 additions & 26 deletions CountryCodePicker.iml

This file was deleted.

57 changes: 55 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
![GitHub code size](https://img.shields.io/github/languages/code-size/chandrabezzo/CountryCodePicker)
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
![GitHub contributors](https://img.shields.io/github/contributors/chandrabezzo/CountryCodePicker)
[![Pub](https://img.shields.io/pub/v/country_code_picker.svg)](https://pub.dartlang.org/packages/country_code_picker)
[![Linkedin](https://i.stack.imgur.com/gVE0j.png) LinkedIn](https://www.linkedin.com/in/salvatore-giordano/)
[![Linkedin](https://i.stack.imgur.com/gVE0j.png) LinkedIn](https://www.linkedin.com/in/chandra-abdul-fattah/)

# country_code_picker

Expand Down Expand Up @@ -50,8 +57,9 @@ void _onCountryChange(CountryCode countryCode) {

### i18n

Just add the `CountryLocalizations.delegate` in the list of your app delegates
Just add the `CountryLocalizations.delegate` in the list of your app delegates

### Default Usage (Localization Enabled)
```dart
return new MaterialApp(
supportedLocales: [
Expand Down Expand Up @@ -133,9 +141,19 @@ Just add the `CountryLocalizations.delegate` in the list of your app delegates
],
```

### Force English (Localization Disabled)
```dart
return new MaterialApp(
localizationsDelegates: [
CountryLocalizations.delegate(enableLocalization: false),
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
```

## Customization

Here is a list of properties available to customize your widget:
Here is a list of properties available to customizeccc your widget:

| Name | Type | Description |
|-----|-----|------|
Expand Down Expand Up @@ -167,3 +185,38 @@ Here is a list of properties available to customize your widget:
## Contributions

Contributions of any kind are more than welcome! Feel free to fork and improve country_code_picker in any way you want, make a pull request, or open an issue.


## Getting involved
First of all, thank you for even considering to get involved. You are a real super :star: and we :heart: you!

### Reporting bugs and issues
Use the configured [Github issue report template](https://github.com/imtoori/CountryCodePicker/issues/new?assignees=&labels=&template=bug_report.md&title=) when reporting an issue. Make sure to state your observations and expectations
as objectively and informative as possible so that we can understand your need and be able to troubleshoot.

### Discussions and ideas
We're happy to discuss and talk about ideas, post your
question to [StackOverflow](https://stackoverflow.com/search?q=country+code+picker).
## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/chandra-abdul-fattah"><img src="https://avatars.githubusercontent.com/u/16184998?v=4?s=100" width="100px;" alt="Chandra Abdul Fattah"/><br /><sub><b>Chandra Abdul Fattah</b></sub></a><br /><a href="#infra-chandrabezzo" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/chandrabezzo/CountryCodePicker/commits?author=chandrabezzo" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/imtoori"><img src="https://avatars.githubusercontent.com/u/20601437?v=4?s=100" width="100px;" alt="Salvatore Giordano"/><br /><sub><b>Salvatore Giordano</b></sub></a><br /><a href="#infra-imtoori" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/chandrabezzo/CountryCodePicker/commits?author=imtoori" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/nilashish-roy-b8a4a0171/"><img src="https://avatars.githubusercontent.com/u/96123041?v=4?s=100" width="100px;" alt="Nilashish Roy"/><br /><sub><b>Nilashish Roy</b></sub></a><br /><a href="#infra-mrroy121" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/chandrabezzo/CountryCodePicker/commits?author=mrroy121" title="Code">💻</a></td>
</tr>
</tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
29 changes: 29 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

This file was deleted.

20 changes: 0 additions & 20 deletions country_code_picker.iml

This file was deleted.

39 changes: 37 additions & 2 deletions example/.metadata
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
# This file should be version controlled.

version:
revision: 0b8abb4724aa590dd0f429683339b1e045a1594d
revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
channel: stable

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
base_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
- platform: android
create_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
base_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
- platform: ios
create_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
base_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
- platform: linux
create_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
base_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
- platform: macos
create_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
base_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
- platform: web
create_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
base_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
- platform: windows
create_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72
base_revision: 12cb4eb7a009f52b347b62ade7cb4854b926af72

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
29 changes: 29 additions & 0 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
6 changes: 6 additions & 0 deletions example/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ gradle-wrapper.jar
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
**/*.keystore
**/*.jks
Loading