2023-03-25 05:44:53 +02:00
|
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
2024-05-01 04:36:40 +02:00
|
|
|
import 'package:immich_mobile/entities/asset.entity.dart';
|
2023-03-25 05:44:53 +02:00
|
|
|
import 'package:immich_mobile/shared/providers/db.provider.dart';
|
2023-12-28 07:33:37 +02:00
|
|
|
import 'package:isar/isar.dart';
|
2023-03-25 05:44:53 +02:00
|
|
|
|
2024-01-27 18:14:32 +02:00
|
|
|
final allMotionPhotosProvider = FutureProvider<List<Asset>>((ref) async {
|
|
|
|
return ref
|
|
|
|
.watch(dbProvider)
|
|
|
|
.assets
|
|
|
|
.filter()
|
|
|
|
.livePhotoVideoIdIsNotNull()
|
|
|
|
.findAll();
|
2023-03-25 05:44:53 +02:00
|
|
|
});
|