fix sdk dep

This commit is contained in:
Salvatore Giordano
2018-07-14 16:47:06 +02:00
parent c413aa1f96
commit e03de5039b
6 changed files with 76 additions and 19 deletions

View File

@@ -14,7 +14,12 @@ class CountryCodePicker extends StatefulWidget {
final TextStyle textStyle;
final EdgeInsetsGeometry padding;
CountryCodePicker({this.onChanged, this.initialSelection, this.favorite, this.textStyle, this.padding});
CountryCodePicker(
{this.onChanged,
this.initialSelection,
this.favorite,
this.textStyle,
this.padding});
@override
State<StatefulWidget> createState() {
@@ -82,8 +87,9 @@ class _CountryCodePickerState extends State<CountryCodePicker> {
favoriteElements = elements
.where((e) =>
widget.favorite
.firstWhere((f) => e.code == f.toUpperCase() || e.dialCode == f.toString(), orElse: () => null) !=
widget.favorite.firstWhere(
(f) => e.code == f.toUpperCase() || e.dialCode == f.toString(),
orElse: () => null) !=
null)
.toList();
super.initState();