fix search logic when multiple categories exist
This commit is contained in:
parent
09bc9bdcbd
commit
22e58e3d05
1 changed files with 3 additions and 2 deletions
|
|
@ -37,8 +37,9 @@ class SettingsPage extends ConsumerWidget {
|
||||||
);
|
);
|
||||||
final query = controller.text.toLowerCase();
|
final query = controller.text.toLowerCase();
|
||||||
|
|
||||||
final matches = categories.values
|
final matches = categories.values.flattenedToList
|
||||||
.expand((categoryList) => categoryList.asMap().entries)
|
.asMap()
|
||||||
|
.entries
|
||||||
.expand(
|
.expand(
|
||||||
(categoryEntry) => categoryEntry.value.settings
|
(categoryEntry) => categoryEntry.value.settings
|
||||||
.asMap()
|
.asMap()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue