9 Commits
3.3.1 ... 3.4.0

Author SHA1 Message Date
Chandra Abdul Fattah
72d10bcba5 Merge pull request #65 from chandrabezzo/release-3.4.0
Some checks failed
Publish to pub.dev / publish (push) Has been cancelled
Release 3.4.0
2025-08-19 19:56:45 +07:00
Chandra Abdul Fattah
0cc1771ebf Update CHANGELOG.md 2025-08-19 19:56:28 +07:00
Chandra Abdul Fattah
864dce4d4b Update pubspec.yaml 2025-08-19 19:53:48 +07:00
Chandra Abdul Fattah
bc3cd989a4 Merge pull request #60 from ShahanMalik/patch-2
Update selection_dialog.dart
2025-08-19 19:50:36 +07:00
Chandra Abdul Fattah
f800e933ad Merge pull request #59 from ShahanMalik/patch-1
Update country_code_picker.dart
2025-08-19 19:49:45 +07:00
Chandra Abdul Fattah
c0a8a00d27 Merge pull request #57 from bailyzheng/zldev
Standardizing the description of various regions in China
2025-08-19 19:48:30 +07:00
Shahan
0a873bd7e9 Update selection_dialog.dart
add isFocused property in textfield
2025-07-22 16:56:44 +05:00
Shahan
84673f3488 Update country_code_picker.dart
add autofocus property in textfield
2025-07-22 16:53:52 +05:00
stones
0460f3f37c Standardizing the description of various regions in China 2025-04-27 09:31:34 +08:00
7 changed files with 23 additions and 16 deletions

View File

@@ -1,3 +1,7 @@
## 3.4.0 - August 19 2025
- Fix China translation
- Adding flag autofocus
## 3.3.1 - August 19 2025 ## 3.3.1 - August 19 2025
- Fix French translation accent display issue - Fix French translation accent display issue
- Correct French country name translations (Biélorussie, Koweït, Grenade, etc.) - Correct French country name translations (Biélorussie, Koweït, Grenade, etc.)

View File

@@ -27,6 +27,7 @@ class CountryCodePicker extends StatefulWidget {
final bool showCountryOnly; final bool showCountryOnly;
final InputDecoration searchDecoration; final InputDecoration searchDecoration;
final TextStyle? searchStyle; final TextStyle? searchStyle;
final bool? isFocused;
final TextStyle? dialogTextStyle; final TextStyle? dialogTextStyle;
final WidgetBuilder? emptySearchBuilder; final WidgetBuilder? emptySearchBuilder;
final Function(CountryCode?)? builder; final Function(CountryCode?)? builder;
@@ -125,6 +126,7 @@ class CountryCodePicker extends StatefulWidget {
this.margin, this.margin,
this.showCountryOnly = false, this.showCountryOnly = false,
this.searchDecoration = const InputDecoration(), this.searchDecoration = const InputDecoration(),
this.isFocused = false,
this.searchStyle, this.searchStyle,
this.dialogTextStyle, this.dialogTextStyle,
this.emptySearchBuilder, this.emptySearchBuilder,
@@ -330,6 +332,7 @@ class CountryCodePickerState extends State<CountryCodePicker> {
emptySearchBuilder: widget.emptySearchBuilder, emptySearchBuilder: widget.emptySearchBuilder,
searchDecoration: widget.searchDecoration, searchDecoration: widget.searchDecoration,
searchStyle: widget.searchStyle, searchStyle: widget.searchStyle,
isFocused: widget.isFocused,
textStyle: widget.dialogTextStyle, textStyle: widget.dialogTextStyle,
boxDecoration: widget.boxDecoration, boxDecoration: widget.boxDecoration,
showFlag: widget.showFlagDialog ?? widget.showFlag, showFlag: widget.showFlagDialog ?? widget.showFlag,

View File

@@ -83,7 +83,7 @@ const List<Map<String, String>> codes = [
}, },
{"name": "Tchad", "code": "TD", "iso3Code": "TCD", "dial_code": "+235"}, {"name": "Tchad", "code": "TD", "iso3Code": "TCD", "dial_code": "+235"},
{"name": "Chile", "code": "CL", "iso3Code": "CHL", "dial_code": "+56"}, {"name": "Chile", "code": "CL", "iso3Code": "CHL", "dial_code": "+56"},
{"name": "中国", "code": "CN", "iso3Code": "CHN", "dial_code": "+86"}, {"name": "中国大陆", "code": "CN", "iso3Code": "CHN", "dial_code": "+86"},
{ {
"name": "Christmas Island", "name": "Christmas Island",
"code": "CX", "code": "CX",
@@ -216,7 +216,7 @@ const List<Map<String, String>> codes = [
}, },
{"name": "Vaticano", "code": "VA", "iso3Code": "VAT", "dial_code": "+379"}, {"name": "Vaticano", "code": "VA", "iso3Code": "VAT", "dial_code": "+379"},
{"name": "Honduras", "code": "HN", "iso3Code": "HND", "dial_code": "+504"}, {"name": "Honduras", "code": "HN", "iso3Code": "HND", "dial_code": "+504"},
{"name": "香港", "code": "HK", "iso3Code": "HKG", "dial_code": "+852"}, {"name": "中國香港", "code": "HK", "iso3Code": "HKG", "dial_code": "+852"},
{"name": "Magyarország", "code": "HU", "iso3Code": "HUN", "dial_code": "+36"}, {"name": "Magyarország", "code": "HU", "iso3Code": "HUN", "dial_code": "+36"},
{"name": "Ísland", "code": "IS", "iso3Code": "ISL", "dial_code": "+354"}, {"name": "Ísland", "code": "IS", "iso3Code": "ISL", "dial_code": "+354"},
{"name": "भारत", "code": "IN", "iso3Code": "IND", "dial_code": "+91"}, {"name": "भारत", "code": "IN", "iso3Code": "IND", "dial_code": "+91"},
@@ -258,7 +258,7 @@ const List<Map<String, String>> codes = [
}, },
{"name": "Lietuva", "code": "LT", "iso3Code": "LTU", "dial_code": "+370"}, {"name": "Lietuva", "code": "LT", "iso3Code": "LTU", "dial_code": "+370"},
{"name": "Luxembourg", "code": "LU", "iso3Code": "LUX", "dial_code": "+352"}, {"name": "Luxembourg", "code": "LU", "iso3Code": "LUX", "dial_code": "+352"},
{"name": "澳門", "code": "MO", "iso3Code": "MAC", "dial_code": "+853"}, {"name": "中國澳門", "code": "MO", "iso3Code": "MAC", "dial_code": "+853"},
{"name": "Македонија", "code": "MK", "iso3Code": "MKD", "dial_code": "+389"}, {"name": "Македонија", "code": "MK", "iso3Code": "MKD", "dial_code": "+389"},
{ {
"name": "Madagasikara", "name": "Madagasikara",
@@ -456,7 +456,7 @@ const List<Map<String, String>> codes = [
{"name": "Sverige", "code": "SE", "iso3Code": "SWE", "dial_code": "+46"}, {"name": "Sverige", "code": "SE", "iso3Code": "SWE", "dial_code": "+46"},
{"name": "Schweiz", "code": "CH", "iso3Code": "CHE", "dial_code": "+41"}, {"name": "Schweiz", "code": "CH", "iso3Code": "CHE", "dial_code": "+41"},
{"name": "سوريا", "code": "SY", "iso3Code": "SYR", "dial_code": "+963"}, {"name": "سوريا", "code": "SY", "iso3Code": "SYR", "dial_code": "+963"},
{"name": "臺灣", "code": "TW", "iso3Code": "TWN", "dial_code": "+886"}, {"name": "中國臺灣", "code": "TW", "iso3Code": "TWN", "dial_code": "+886"},
{"name": "Тоҷикистон", "code": "TJ", "iso3Code": "TJK", "dial_code": "+992"}, {"name": "Тоҷикистон", "code": "TJ", "iso3Code": "TJK", "dial_code": "+992"},
{"name": "Tanzania", "code": "TZ", "iso3Code": "TZA", "dial_code": "+255"}, {"name": "Tanzania", "code": "TZ", "iso3Code": "TZA", "dial_code": "+255"},
{"name": "ประเทศไทย", "code": "TH", "iso3Code": "THA", "dial_code": "+66"}, {"name": "ประเทศไทย", "code": "TH", "iso3Code": "THA", "dial_code": "+66"},

View File

@@ -42,7 +42,7 @@
"CF": "Central African Republic", "CF": "Central African Republic",
"TD": "Chad", "TD": "Chad",
"CL": "Chile", "CL": "Chile",
"CN": "China", "CN": "China's Mainland",
"CX": "Christmas Island", "CX": "Christmas Island",
"CC": "Cocos (Keeling) Islands", "CC": "Cocos (Keeling) Islands",
"CO": "Colombia", "CO": "Colombia",
@@ -94,7 +94,7 @@
"HM": "Heard Island and McDonald Islands", "HM": "Heard Island and McDonald Islands",
"VA": "Holy See (Vatican City State)", "VA": "Holy See (Vatican City State)",
"HN": "Honduras", "HN": "Honduras",
"HK": "Hong Kong", "HK": "Hong Kong China",
"HU": "Hungary", "HU": "Hungary",
"IS": "Iceland", "IS": "Iceland",
"IN": "India", "IN": "India",
@@ -123,7 +123,7 @@
"LI": "Liechtenstein", "LI": "Liechtenstein",
"LT": "Lithuania", "LT": "Lithuania",
"LU": "Luxembourg", "LU": "Luxembourg",
"MO": "Macao", "MO": "Macao China",
"MG": "Madagascar", "MG": "Madagascar",
"MW": "Malawi", "MW": "Malawi",
"MY": "Malaysia", "MY": "Malaysia",
@@ -210,10 +210,7 @@
"SE": "Sweden", "SE": "Sweden",
"CH": "Switzerland", "CH": "Switzerland",
"SY": "Syrian Arab Republic", "SY": "Syrian Arab Republic",
"TW": [ "TW": "Taiwan China",
"Taiwan, Province of China",
"Taiwan"
],
"TJ": "Tajikistan", "TJ": "Tajikistan",
"TZ": "Tanzania, United Republic of", "TZ": "Tanzania, United Republic of",
"TH": "Thailand", "TH": "Thailand",

View File

@@ -46,7 +46,7 @@
"CK": "库克群岛", "CK": "库克群岛",
"CL": "智利", "CL": "智利",
"CM": "喀麦隆", "CM": "喀麦隆",
"CN": "中国", "CN": "中国大陆",
"CO": "哥伦比亚", "CO": "哥伦比亚",
"CR": "哥斯达黎加", "CR": "哥斯达黎加",
"CU": "古巴", "CU": "古巴",
@@ -93,7 +93,7 @@
"GU": "关岛", "GU": "关岛",
"GW": "几内亚比绍", "GW": "几内亚比绍",
"GY": "圭亚那", "GY": "圭亚那",
"HK": "香港", "HK": "中国香港",
"HM": "赫德岛和麦克唐纳群岛", "HM": "赫德岛和麦克唐纳群岛",
"HN": "洪都拉斯", "HN": "洪都拉斯",
"HR": "克罗地亚", "HR": "克罗地亚",
@@ -146,7 +146,7 @@
"ML": "马里", "ML": "马里",
"MM": "缅甸", "MM": "缅甸",
"MN": "蒙古", "MN": "蒙古",
"MO": "澳门", "MO": "中国澳门",
"MP": "北马里亚纳群岛", "MP": "北马里亚纳群岛",
"MQ": "马提尼克", "MQ": "马提尼克",
"MR": "毛里塔尼亚", "MR": "毛里塔尼亚",
@@ -226,7 +226,7 @@
"TR": "土耳其", "TR": "土耳其",
"TT": "特立尼达和多巴哥", "TT": "特立尼达和多巴哥",
"TV": "图瓦卢", "TV": "图瓦卢",
"TW": "中国台湾", "TW": "中国台湾",
"TZ": "坦桑尼亚", "TZ": "坦桑尼亚",
"UA": "乌克兰", "UA": "乌克兰",
"UG": "乌干达", "UG": "乌干达",

View File

@@ -10,6 +10,7 @@ class SelectionDialog extends StatefulWidget {
final bool? showCountryOnly; final bool? showCountryOnly;
final InputDecoration searchDecoration; final InputDecoration searchDecoration;
final TextStyle? searchStyle; final TextStyle? searchStyle;
final bool? isFocused;
final TextStyle? textStyle; final TextStyle? textStyle;
final TextStyle headerTextStyle; final TextStyle headerTextStyle;
final BoxDecoration? boxDecoration; final BoxDecoration? boxDecoration;
@@ -50,6 +51,7 @@ class SelectionDialog extends StatefulWidget {
required this.headerTextStyle, required this.headerTextStyle,
InputDecoration searchDecoration = const InputDecoration(), InputDecoration searchDecoration = const InputDecoration(),
this.searchStyle, this.searchStyle,
this.isFocused,
this.textStyle, this.textStyle,
required this.topBarPadding, required this.topBarPadding,
this.headerText, this.headerText,
@@ -132,6 +134,7 @@ class _SelectionDialogState extends State<SelectionDialog> {
Padding( Padding(
padding: widget.searchPadding, padding: widget.searchPadding,
child: TextField( child: TextField(
autofocus: widget.isFocused ?? false,
style: widget.searchStyle, style: widget.searchStyle,
decoration: widget.searchDecoration, decoration: widget.searchDecoration,
onChanged: _filterElements, onChanged: _filterElements,

View File

@@ -1,6 +1,6 @@
name: country_code_picker name: country_code_picker
description: A flutter package for showing a country code selector. In addition it gives the possibility to select a list of favorites countries, as well as to search using a simple searchbox description: A flutter package for showing a country code selector. In addition it gives the possibility to select a list of favorites countries, as well as to search using a simple searchbox
version: 3.3.1 version: 3.4.0
homepage: https://github.com/chandrabezzo/CountryCodePicker homepage: https://github.com/chandrabezzo/CountryCodePicker
repository: https://github.com/chandrabezzo/CountryCodePicker repository: https://github.com/chandrabezzo/CountryCodePicker
issue_tracker: https://github.com/imtoori/CountryCodePicker/issues issue_tracker: https://github.com/imtoori/CountryCodePicker/issues