Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: world_countries v2.0.2 #239

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions packages/world_countries/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 2.0.2
tsinis marked this conversation as resolved.
Show resolved Hide resolved

NEW FEATURES

- Added new method for the [FunctionalPlatform](https://pub.dev/documentation/world_countries/latest/helpers/FunctionalPlatform-class.html) - `maybeWhen` (in addition to hash-map like method `maybeWhenConst` that works with mostly immutable object returns (instead of closures in the new method)).
- Improved `showInSearch` method pop handling.
- A `searchSuggestions` method might be affected by the SDK [bug](https://github.com/flutter/flutter/issues/155180) fixed in [v3.27.0](https://github.com/flutter/flutter/pull/155219). As a temporary workaround, you can create your own instance of `SearchController` and dispose of it manually.
- Updated postal code pattern a format for Paraguay.
- Updated International Olympic Committee (IOC) country code for Bahrain.
- Improvements of `toString()` method implementations in models and addressing new lints + DCM reports.
- Added "polski" to the [Polish](https://github.com/tsinis/sealed_world/issues/221) language `namesNative` array.

## 2.0.1

NEW FEATURES
Expand Down
2 changes: 1 addition & 1 deletion packages/world_countries/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Or you can just create your own pickers by extending `BasicPicker`.

To preview the demo from the example, you can visit [this web page](https://tsin.is/sealed_world) using the **Chrome** browser (version **119** or higher). Please allow up 10 seconds for initial fonts and data caching.

> Note: Please keep in mind that demo was build with Flutter WASM which is in very early alpha stage, so performance might be affected.
> Note: Please keep in mind that demo was built with Flutter WASM which is in very early alpha stage, so performance might be affected.

### Getting started

Expand Down
8 changes: 4 additions & 4 deletions packages/world_countries/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

This project enables the visual presentation of "Sealed World" data, which includes information about countries, currencies, and languages. Additionally, it provides examples of Flutter widgets related to "World Countries" package.

Flutter WASM: To preview this example, you can visit [this web page](https://tsin.is/sealed_world) using the **Chrome** browser (version **119** or higher). Please allow up to 15 seconds for initial fonts and data caching.
Flutter WASM: To preview this example, you can visit [this web page](https://tsin.is/sealed_world) using the **Chrome** browser (version **119** or higher). Please allow up to 10 seconds for initial fonts and data caching.
tsinis marked this conversation as resolved.
Show resolved Hide resolved

> Note: Please keep in mind that demo was build with Flutter WASM which is in very early alpha stage, so performance might be affected.
> Note: Please keep in mind that demo was built with Flutter WASM which is in very early alpha stage, so performance might be affected.

## How to run it

Flutter (version 3.10+ or higher) is assumed to be installed. After that, all you have to do is run those commands from the terminal/command line from the project's root folder:
Flutter (version 3.27+ or higher) is assumed to be installed. After that, all you have to do is run those commands from the terminal/command line from the project's root folder:
tsinis marked this conversation as resolved.
Show resolved Hide resolved
tsinis marked this conversation as resolved.
Show resolved Hide resolved

```shell
flutter pub get
Expand All @@ -21,7 +21,7 @@ flutter run

## Attribution

This project includes code from the [Flutter samples: Navigation and Routing](https://github.com/flutter/samples/tree/main/navigation_and_routing) project, licensed under the BSD 3-Clause License.
This project includes original code from the [Flutter samples: Navigation and Routing](https://github.com/flutter/samples/tree/main/navigation_and_routing) project (before it was migrated to the `go_router`), licensed under the BSD 3-Clause License.
tsinis marked this conversation as resolved.
Show resolved Hide resolved
tsinis marked this conversation as resolved.
Show resolved Hide resolved

- Original Project: Flutter samples
- Original License: BSD 3-Clause License
Expand Down
18 changes: 9 additions & 9 deletions packages/world_countries/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -577,26 +577,26 @@ packages:
dependency: transitive
description:
name: sealed_countries
sha256: e5c7436ebdc6c3fd332c3bc16831fd4e69d5ade6f3123d33791b6be29fcdb91b
sha256: cab25d9244502220f69069d569dedb39ba7983113746ba44b9ec05113c72ee81
url: "https://pub.dev"
source: hosted
version: "1.5.0"
version: "1.5.1"
sealed_currencies:
dependency: transitive
description:
name: sealed_currencies
sha256: d02f259ffa25fa1b227478edd00ffb7bc78860168611be97aab4bcab984b9a69
sha256: b8aa884a4b5c061883d818e8e58f62b9057d59530b71660e4ced4edfa6b514fc
url: "https://pub.dev"
source: hosted
version: "1.5.0"
version: "1.5.1"
sealed_languages:
dependency: transitive
description:
name: sealed_languages
sha256: "060ef61bf1b42cccdf18d065707ed9a75905fe7b78a6e65aec9a2e876489253e"
sha256: fbe2763bfac54ee8a52674c61588c4f1f9f260fd7db3782cbff3d154e952a918
url: "https://pub.dev"
source: hosted
version: "1.5.0"
version: "1.5.1"
shelf:
dependency: transitive
description:
Expand Down Expand Up @@ -792,15 +792,15 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.1"
version: "2.0.2"
world_flags:
dependency: transitive
description:
name: world_flags
sha256: "63d05604145d41b046e2f3c2835d06079ae731fc71d32d2c14147693368c148e"
sha256: "11cc655e25b2fa48a52b1df5b67ddd249b84e32a1f332f6616cd612884f7d6b6"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
version: "1.1.1"
xml:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/world_countries/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: example
description: A world_countries example application.
publish_to: none
version: 2.1.0+0
version: 2.0.2+0

# Should run on Flutter v3.27 or higher, because of SearchController bug.
environment:
Expand Down
4 changes: 2 additions & 2 deletions packages/world_countries/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.0.1
version: 2.0.2
name: world_countries
description: Sealed world data in form of Flutter widgets (country, phone, currency pickers, etc.).
maintainer: Roman Cinis
Expand Down Expand Up @@ -36,7 +36,7 @@ environment:
dependencies:
flutter:
sdk: flutter
world_flags: ^1.1.0
world_flags: ^1.1.1

dev_dependencies:
_sealed_world_tests:
Expand Down