ソースを参照

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,
                             autoFocus: true,
                             onChange: (value) {
-                              value != _searchQuery
-                                  ? setState(() {
-                                      _searchQuery = value;
-                                    })
-                                  : null;
+                              setState(() {
+                                _searchQuery = value;
+                              });
                             },
                             cancellable: true,
                             shouldUnfocusOnCancelOrSubmit: true,