Remove unnecessary rebuild
This commit is contained in:
parent
5426d9ce25
commit
6bbc63cbc7
1 changed files with 5 additions and 3 deletions
|
@ -155,9 +155,11 @@ class _CollectionActionSheetState extends State<CollectionActionSheet> {
|
|||
prefixIcon: Icons.search_rounded,
|
||||
autoFocus: true,
|
||||
onChange: (value) {
|
||||
setState(() {
|
||||
_searchQuery = value;
|
||||
});
|
||||
value != _searchQuery
|
||||
? setState(() {
|
||||
_searchQuery = value;
|
||||
})
|
||||
: null;
|
||||
},
|
||||
cancellable: true,
|
||||
shouldUnfocusOnCancelOrSubmit: true,
|
||||
|
|
Loading…
Reference in a new issue