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 matches = categories.values
|
||||
.expand((categoryList) => categoryList.asMap().entries)
|
||||
final matches = categories.values.flattenedToList
|
||||
.asMap()
|
||||
.entries
|
||||
.expand(
|
||||
(categoryEntry) => categoryEntry.value.settings
|
||||
.asMap()
|
||||
|
|
|
|||
Loading…
Reference in a new issue