mirror of
https://github.com/immich-app/immich.git
synced 2025-02-04 01:09:14 -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
|
||||
class GalleryViewerPage extends HookConsumerWidget {
|
||||
late List<Asset> assetList;
|
||||
final List<Asset> assetList;
|
||||
final Asset asset;
|
||||
|
||||
GalleryViewerPage({
|
||||
|
@ -43,7 +43,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
|||
|
||||
Asset? assetDetail;
|
||||
|
||||
late PageController controller;
|
||||
final PageController controller;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
|
@ -197,6 +197,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
|||
curve: Curves.fastLinearToSlowEaseIn,
|
||||
);
|
||||
}
|
||||
assetList.remove(deleteAsset);
|
||||
ref.watch(assetProvider.notifier).deleteAssets({deleteAsset});
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue