fix: asset stack stacked over asset details

This commit is contained in:
shenlong-tanwen 2026-08-06 14:23:14 +05:30
parent 0687c0d3f7
commit 94c647ce91

View file

@ -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);