浏览代码

Revert "Remove unnecessary rebuild"

This reverts commit 6bbc63cbc797db489172f54e46f2acef447d0a32.
ashilkn 2 年之前
父节点
当前提交
a6a4e8a2a9
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      lib/ui/collection_action_sheet.dart

+ 3 - 5
lib/ui/collection_action_sheet.dart

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