mirror of
https://github.com/immich-app/immich.git
synced 2025-02-11 01:18:24 -05:00
removes deleted asset from gallery list (#1837)
This commit is contained in:
parent
5c86e13239
commit
98a8be82e2
1 changed files with 3 additions and 2 deletions
|
@ -31,7 +31,7 @@ import 'package:openapi/api.dart' as api;
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
// ignore: must_be_immutable
|
||||||
class GalleryViewerPage extends HookConsumerWidget {
|
class GalleryViewerPage extends HookConsumerWidget {
|
||||||
late List<Asset> assetList;
|
final List<Asset> assetList;
|
||||||
final Asset asset;
|
final Asset asset;
|
||||||
|
|
||||||
GalleryViewerPage({
|
GalleryViewerPage({
|
||||||
|
@ -43,7 +43,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
||||||
|
|
||||||
Asset? assetDetail;
|
Asset? assetDetail;
|
||||||
|
|
||||||
late PageController controller;
|
final PageController controller;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
|
@ -197,6 +197,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
||||||
curve: Curves.fastLinearToSlowEaseIn,
|
curve: Curves.fastLinearToSlowEaseIn,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
assetList.remove(deleteAsset);
|
||||||
ref.watch(assetProvider.notifier).deleteAssets({deleteAsset});
|
ref.watch(assetProvider.notifier).deleteAssets({deleteAsset});
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue