bump version

This commit is contained in:
Salvatore Giordano
2020-04-07 15:12:04 +02:00
parent 354f4395b7
commit a94a13bd47
3 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
## 1.3.10 ## 1.3.11
- Fix initialization - Fix initialization

View File

@@ -185,12 +185,14 @@ class CountryCodePickerState extends State<CountryCodePicker> {
} else { } else {
selectedItem = elements[0]; selectedItem = elements[0];
} }
_onInit(selectedItem);
} }
} }
@override @override
void initState() { void initState() {
super.initState(); super.initState();
if (widget.initialSelection != null) { if (widget.initialSelection != null) {
selectedItem = elements.firstWhere( selectedItem = elements.firstWhere(
(e) => (e) =>
@@ -202,6 +204,8 @@ class CountryCodePickerState extends State<CountryCodePicker> {
selectedItem = elements[0]; selectedItem = elements[0];
} }
_onInit(selectedItem);
favoriteElements = elements favoriteElements = elements
.where((e) => .where((e) =>
widget.favorite.firstWhere( widget.favorite.firstWhere(

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: 1.3.10 version: 1.3.11
homepage: https://github.com/imtoori/CountryCodePicker homepage: https://github.com/imtoori/CountryCodePicker
environment: environment: