improve rebuild

This commit is contained in:
Fabian Freund
2025-09-29 14:41:27 +02:00
parent d441620580
commit ffe23f2be3
2 changed files with 3 additions and 1 deletions
@@ -44,6 +44,7 @@ class BangChips extends HookConsumerWidget {
required this.onDeleted,
this.searchTextController,
this.displayMenu = true,
super.key,
});
static Future<bool?> resetBangDialog(
@@ -132,6 +132,7 @@ class FullSearchTermSuggestions extends HookConsumerWidget {
style: Theme.of(context).textTheme.labelSmall,
),
BangChips(
key: ValueKey(activeBang),
activeBang: activeBang,
onSelected: (bang) {
searchTextController.clear();
@@ -142,7 +143,7 @@ class FullSearchTermSuggestions extends HookConsumerWidget {
},
onDeleted: (bang) async {
if (ref.read(selectedBangTriggerProvider()) ==
bang.trigger) {
bang.toKey()) {
ref
.read(selectedBangTriggerProvider().notifier)
.clearTrigger();