fix: asset stack stacked over asset details (#30598)

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2026-08-06 19:29:21 +05:30
committed by GitHub
co-authored by shenlong-tanwen
parent 63b90ec43d
commit 6167618f5c
@@ -22,6 +22,11 @@ class AssetStackRow extends ConsumerWidget {
return const SizedBox.shrink();
}
final showingDetails = ref.watch(assetViewerProvider.select((s) => s.showingDetails));
if (showingDetails) {
return const SizedBox.shrink();
}
final showingControls = ref.watch(assetViewerProvider.select((s) => s.showingControls));
final double opacity =
ref.watch(assetViewerProvider.select((s) => s.backgroundOpacity)) * (showingControls ? 1 : 0);