File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -263,10 +263,6 @@ class GalleryViewerPage extends HookConsumerWidget {
263
263
PhotoViewGalleryPageOptions buildAsset (BuildContext context, int index) {
264
264
var newAsset = loadAsset (index);
265
265
266
- WidgetsBinding .instance.addPostFrameCallback ((_) {
267
- ref.read (currentAssetProvider.notifier).set (newAsset);
268
- });
269
-
270
266
final stackId = newAsset.stackId;
271
267
if (stackId != null && currentIndex.value == index) {
272
268
final stackElements =
Original file line number Diff line number Diff line change @@ -95,6 +95,11 @@ class BottomGalleryBar extends ConsumerWidget {
95
95
96
96
totalAssets.value -= 1 ;
97
97
}
98
+ if (isDeleted) {
99
+ ref
100
+ .read (currentAssetProvider.notifier)
101
+ .set (renderList.loadAsset (assetIndex.value));
102
+ }
98
103
return isDeleted;
99
104
}
100
105
You can’t perform that action at this time.
0 commit comments