Remove unnecessary rebuild

This commit is contained in:
ashilkn 2023-03-10 13:10:22 +05:30
parent 5426d9ce25
commit 6bbc63cbc7

View file

@ -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,