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