[Fix] searchDecoration parameter was null

This commit is contained in:
Andrew Fulton committed 2019-04-01 22:44:12 -05:00
1 parent b3dff1e3d9
commit 0ad5e79ea2
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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,
});
+1
View File
@@ -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);