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