Skip to content

Commit

Permalink
V1.0.2
Browse files Browse the repository at this point in the history
Merge pull request #2 from Daniel-Ioannou/v1.0.2
  • Loading branch information
Daniel-Ioannou authored Aug 18, 2020
2 parents 06ded9c + b7e13ad commit 20a74a0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
## [1.0.0] - 11 Aug 2020

* Initial developers preview release.
## [1.0.2] - 18 Aug 2020

* Add exclude countries option.

## [1.0.1] - 12 Aug 2020

* Add documentation.

## [1.0.0] - 11 Aug 2020

* Initial developers preview release.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ A flutter package to select a country from a list of countries.
Add the package to your pubspec.yaml:

```yaml
country_picker: ^1.0.1
country_picker: ^1.0.2
```
In your dart file, import the library:
```Dart
import 'package:country_picker/country_picker.dart';
import 'package:country_picker/country_picker.dart';
```
Show country picker using `showCountryPicker`:
```Dart
```Dart
showCountryPicker(
context: context,
onSelect: (Country country) {
Expand All @@ -29,6 +29,14 @@ showCountryPicker(

### Parameters:
* `onSelect`: Called when a country is select. The country picker passes the new value to the callback (required)
* `exclude`: Can be used to exclude(remove) one ore more country from the countries list (optional).
```Dart
showCountryPicker(
context: context,
exclude: <String>['KN', 'MF'], //It takes a list of country code(iso2).
onSelect: (Country country) => print('Select country: ${country.displayName}'),
);
```

## 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.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.1"
version: "1.0.2"
crypto:
dependency: transitive
description:
Expand Down
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: 1.0.1
version: 1.0.2
homepage: https://github.com/Daniel-Ioannou
repository: https://github.com/Daniel-Ioannou/flutter_country_picker

Expand Down

0 comments on commit 20a74a0

Please sign in to comment.