[Fix] searchDecoration parameter was null
This commit is contained in:
@@ -25,7 +25,7 @@ class CountryCodePicker extends StatefulWidget {
|
||||
this.textStyle,
|
||||
this.padding = const EdgeInsets.all(0.0),
|
||||
this.showCountryOnly = false,
|
||||
this.searchDecoration,
|
||||
this.searchDecoration = const InputDecoration(),
|
||||
this.searchStyle,
|
||||
this.emptySearchBuilder,
|
||||
});
|
||||
|
||||
@@ -19,6 +19,7 @@ class SelectionDialog extends StatefulWidget {
|
||||
InputDecoration searchDecoration = const InputDecoration(),
|
||||
this.searchStyle,
|
||||
}) :
|
||||
assert(searchDecoration != null, 'searchDecoration must not be null!'),
|
||||
this.searchDecoration = searchDecoration.copyWith(prefixIcon: Icon(Icons.search)),
|
||||
super(key: key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user