mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-16 02:35:59 -07:00
feat: Improve library search screen (#477)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
571b682b80
commit
d22d340181
41 changed files with 2881 additions and 2026 deletions
|
|
@ -66,7 +66,8 @@ class LibraryScreen extends _$LibraryScreen {
|
|||
|
||||
Future<void> fetchAllLibraries() async {
|
||||
final views = await ref.read(viewsProvider.notifier).fetchViews();
|
||||
state = state.copyWith(views: views?.views ?? []);
|
||||
state = state.copyWith(
|
||||
views: views?.views.where((element) => element.collectionType != CollectionType.folders).toList() ?? []);
|
||||
if (state.views.isEmpty) return;
|
||||
final viewModel = state.selectedViewModel ?? state.views.firstOrNull;
|
||||
if (viewModel == null) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue