Update selection_dialog.dart

This commit is contained in:
vlfr1997
2020-09-24 18:41:00 -03:00
committed by GitHub
parent ef3bb23d3e
commit f1aa08bdd0

View File

@@ -31,7 +31,7 @@ class SelectionDialog extends StatefulWidget {
this.flagWidth = 32,
this.size,
this.hideSearch = false,
this.closeIcon = closeIcon == null ? Icon(Icons.close) : closeIcon,
this.closeIcon = closeIcon,
}) : assert(searchDecoration != null, 'searchDecoration must not be null!'),
this.searchDecoration = searchDecoration.prefixIcon == null
? searchDecoration.copyWith(prefixIcon: Icon(Icons.search))