Skip to content

Commit 43cceeb

Browse files
committed
Merged #112
1 parent 4b23365 commit 43cceeb

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## [2.10.0]
2+
- Merged https://github.com/caseyryan/flutter_multi_formatter/pull/112
13
## [2.9.14]
24
- Fixed https://github.com/caseyryan/flutter_multi_formatter/issues/111
35
- Fixed https://github.com/caseyryan/flutter_multi_formatter/issues/110

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ packages:
9696
path: ".."
9797
relative: true
9898
source: path
99-
version: "2.9.14"
99+
version: "2.10.0"
100100
flutter_test:
101101
dependency: "direct dev"
102102
description: flutter

lib/formatters/phone_input_formatter.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,10 @@ class PhoneCountryData {
580580
};
581581
}
582582

583-
factory PhoneCountryData.fromMap(Map value, {String lang = ""}) {
583+
factory PhoneCountryData.fromMap(
584+
Map value, {
585+
String lang = '',
586+
}) {
584587
final countryData = PhoneCountryData._init(
585588
country: value['country$lang'],
586589

@@ -662,10 +665,10 @@ class PhoneCodes {
662665

663666
static List<PhoneCountryData>? _allCountryDatas;
664667

665-
static List<PhoneCountryData> getAllCountryDatas({String langCode = ""}) {
668+
static List<PhoneCountryData> getAllCountryDatas({String langCode = ''}) {
666669
if (_allCountryDatas == null) {
667670
_allCountryDatas = _data
668-
.map((e) => e.containsKey("country${langCode.toUpperCase()}")
671+
.map((e) => e.containsKey('country${langCode.toUpperCase()}')
669672
? PhoneCountryData.fromMap(e, lang: langCode)
670673
: PhoneCountryData.fromMap(e))
671674
.toList();

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_multi_formatter
22
description: A package of formatters for international phone numbers, credit / debit cards and a masked formatter
3-
version: 2.9.14
3+
version: 2.10.0
44
homepage: https://github.com/caseyryan/flutter_multi_formatter
55

66
environment:

0 commit comments

Comments
 (0)