🐛 Fix sticker filter didn't apply as expected in marketplace, close #219

This commit is contained in:
2025-12-27 23:02:48 +08:00
parent 37940ef12a
commit bc1ebc799a
2 changed files with 5 additions and 2 deletions

View File

@@ -91,7 +91,6 @@ class MarketplaceStickersScreen extends HookConsumerWidget {
if (query.value.query == null || query.value.query!.isEmpty) {
searchController.clear();
}
notifier.applyFilter(query.value);
return null;
}, [query]);
@@ -109,6 +108,7 @@ class MarketplaceStickersScreen extends HookConsumerWidget {
IconButton(
onPressed: () {
query.value = query.value.copyWith(byUsage: !query.value.byUsage);
notifier.applyFilter(query.value);
},
icon: query.value.byUsage
? const Icon(Symbols.local_fire_department)
@@ -141,6 +141,7 @@ class MarketplaceStickersScreen extends HookConsumerWidget {
icon: const Icon(Symbols.close),
onPressed: () {
query.value = query.value.copyWith(query: null);
notifier.applyFilter(query.value);
searchController.clear();
focusNode.unfocus();
},
@@ -153,11 +154,13 @@ class MarketplaceStickersScreen extends HookConsumerWidget {
const Duration(milliseconds: 500),
() {
query.value = query.value.copyWith(query: value);
notifier.applyFilter(query.value);
},
);
},
onSubmitted: (value) {
query.value = query.value.copyWith(query: value);
notifier.applyFilter(query.value);
focusNode.unfocus();
},
),

View File

@@ -133,7 +133,7 @@ class PaginationList<T> extends HookConsumerWidget {
);
return SizedBox(
key: const ValueKey('loading'),
child: ListView(children: content),
child: ListView(padding: padding, children: content),
);
}