Skip to content

Commit

Permalink
Add option to search in notes (#116)
Browse files Browse the repository at this point in the history
Cool, thanks :)
  • Loading branch information
dlsf authored Nov 26, 2023
1 parent a21b4d1 commit 9b3dea3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/modules/collection/collection_providers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ final entriesProvider = Provider.autoDispose.family(
break;
}
}

if (!contains &&
entry.notes != null &&
entry.notes!.toLowerCase().contains(search)) {
contains = true;
}

if (!contains) continue;
}

Expand Down

0 comments on commit 9b3dea3

Please sign in to comment.