Skip to content

Commit 145789a

Browse files
committed
Add option to search in notes (lotusprey#116)
Cool, thanks :)
1 parent 41677f6 commit 145789a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/modules/collection/collection_providers.dart

+7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ final entriesProvider = Provider.autoDispose.family(
4646
break;
4747
}
4848
}
49+
50+
if (!contains &&
51+
entry.notes != null &&
52+
entry.notes!.toLowerCase().contains(search)) {
53+
contains = true;
54+
}
55+
4956
if (!contains) continue;
5057
}
5158

0 commit comments

Comments
 (0)