fix flagdecoration

This commit is contained in:
Salvatore Giordano
2021-03-13 12:20:37 +01:00
parent a2955041b1
commit 4e8b890381
3 changed files with 6 additions and 5 deletions

View File

@@ -44,8 +44,7 @@ class SelectionDialog extends StatefulWidget {
this.barrierColor,
this.hideSearch = false,
this.closeIcon,
}) : assert(searchDecoration != null, 'searchDecoration must not be null!'),
this.searchDecoration = searchDecoration.prefixIcon == null
}) : this.searchDecoration = searchDecoration.prefixIcon == null
? searchDecoration.copyWith(prefixIcon: Icon(Icons.search))
: searchDecoration,
super(key: key);