Skip to content

Commit

Permalink
V2.0.27
Browse files Browse the repository at this point in the history
Merge pull request #171 from Daniel-Ioannou/v2.0.27
Closes #148 Closes #149 Closes #167 Closes #169 Closes #145 #157
  • Loading branch information
Daniel-Ioannou authored Nov 10, 2024
2 parents fc4d894 + 0e20214 commit 91320f0
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 11 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 2.0.27
* Add support for Persian (FA) localization
* Add support for Danish (DA) localization
* Fix Ireland in French localization
* Fix East Timor in Arabic localization
* Fix Benin in russian localization
* Change Macedonia's country name to North Macedonia
* Add `findByPhoneCode`: Returns a single country if it matches the given phone code.
```Dart
var austria =CountryService().findByPhoneCode("43");
```
## 2.0.26
* Fix Turkish localization
* Add `moveAlongWithKeyboard`: An optionalargument can be used to move bottomSheet along with keyboard when textfield is focused. It could be useful when bottomSheet height is smaller than half of the screen. Otherwise it shouldn't be set. It has a default value of false.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A flutter package to select a country from a list of countries.
Add the package to your pubspec.yaml:

```yaml
country_picker: ^2.0.26
country_picker: ^2.0.27
```
In your dart file, import the library:
Expand Down
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A flutter package to select a country from a list of countries.
Add the package to your pubspec.yaml:

```yaml
country_picker: ^2.0.26
country_picker: ^2.0.27
```
In your dart file, import the library:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.26"
version: "2.0.27"
fake_async:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions lib/src/country_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import 'res/strings/bg.dart';
import 'res/strings/ca.dart';
import 'res/strings/cn.dart';
import 'res/strings/cs.dart';
import 'res/strings/da.dart';
import 'res/strings/de.dart';
import 'res/strings/en.dart';
import 'res/strings/es.dart';
import 'res/strings/et.dart';
import 'res/strings/fa.dart';
import 'res/strings/fr.dart';
import 'res/strings/gr.dart';
import 'res/strings/he.dart';
Expand All @@ -33,8 +35,6 @@ import 'res/strings/sk.dart';
import 'res/strings/tr.dart';
import 'res/strings/tw.dart';
import 'res/strings/uk.dart';
import 'res/strings/fa.dart';
import 'res/strings/da.dart';

class CountryLocalizations {
final Locale locale;
Expand Down
4 changes: 2 additions & 2 deletions lib/src/country_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import 'res/strings/bg.dart';
import 'res/strings/ca.dart';
import 'res/strings/cn.dart';
import 'res/strings/cs.dart';
import 'res/strings/da.dart';
import 'res/strings/de.dart';
import 'res/strings/en.dart';
import 'res/strings/es.dart';
import 'res/strings/et.dart';
import 'res/strings/fa.dart';
import 'res/strings/fr.dart';
import 'res/strings/gr.dart';
import 'res/strings/hr.dart';
Expand All @@ -35,8 +37,6 @@ import 'res/strings/sk.dart';
import 'res/strings/tr.dart';
import 'res/strings/tw.dart';
import 'res/strings/uk.dart';
import 'res/strings/fa.dart';
import 'res/strings/da.dart';

/// Used to parse simple string representations of countries, commonly used in
/// databases and other forms of storage, to a Country object.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/res/strings/ht.dart
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,4 @@ Map<String, String> ht = {
"ZM": "Zanbi",
"ZW": "Zimbabwe",
"search": "Chèche",
};
};
2 changes: 1 addition & 1 deletion lib/src/res/strings/sk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,5 @@ Map<String, String> sk = {
"YE": "Jemen",
"ZM": "Zambia",
"ZW": "Zimbabwe",
"search": "Hľadať"
"search": "Hľadať",
};
2 changes: 1 addition & 1 deletion lib/src/res/strings/tr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,4 @@ Map<String, String> tr = {
"ZM": "Zambiya",
"ZW": "Zimbabve",
"search": "Arama",
};
};
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: country_picker
description: A flutter package to select a country from a list of countries.

version: 2.0.26
version: 2.0.27

homepage: https://github.com/Daniel-Ioannou
repository: https://github.com/Daniel-Ioannou/flutter_country_picker
Expand Down

0 comments on commit 91320f0

Please sign in to comment.