refactor(mobile): render list (#16239)

* refactor(mobile): trash provider

* refactor(mobile): trash provider

* pr feedback

* archive timeline

* favorite

* album

* trash timeline

* all videos timeline

* refactor

* refactor: home timeline and partner timeline

* update analysis option
This commit is contained in:
Alex 2025-02-21 09:01:46 -06:00 committed by GitHub
parent 616905211d
commit 5acf6868b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 284 additions and 196 deletions

View file

@ -1,8 +1,6 @@
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/widgets/asset_grid/asset_grid_data_structure.dart';
import 'package:immich_mobile/services/trash.service.dart';
import 'package:immich_mobile/entities/asset.entity.dart';
import 'package:immich_mobile/providers/user.provider.dart';
import 'package:logging/logging.dart';
class TrashNotifier extends StateNotifier<bool> {
@ -49,12 +47,3 @@ final trashProvider = StateNotifierProvider<TrashNotifier, bool>((ref) {
ref.watch(trashServiceProvider),
);
});
final trashedAssetsProvider = StreamProvider<RenderList>((ref) {
final user = ref.read(currentUserProvider);
if (user == null) {
return const Stream.empty();
}
return ref.watch(trashServiceProvider).getRenderListGenerator(user.isarId);
});