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

View File

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

View File

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