Revert "Remove unnecessary rebuild"

This reverts commit 6bbc63cbc7.
This commit is contained in:
ashilkn 2023-03-14 17:47:08 +05:30
parent 2b0739e37c
commit a6a4e8a2a9

View file

@ -155,11 +155,9 @@ class _CollectionActionSheetState extends State<CollectionActionSheet> {
prefixIcon: Icons.search_rounded,
autoFocus: true,
onChange: (value) {
value != _searchQuery
? setState(() {
_searchQuery = value;
})
: null;
setState(() {
_searchQuery = value;
});
},
cancellable: true,
shouldUnfocusOnCancelOrSubmit: true,