fix: asset viewer background isn't shown (#22161)

* fix: asset viewer background isn't shown

* pr feedback
This commit is contained in:
Alex
2025-09-17 23:26:16 -05:00
committed by GitHub
parent 0b60cc8965
commit 2411bf8374
2 changed files with 11 additions and 3 deletions

View File

@@ -61,6 +61,8 @@ class AssetViewer extends ConsumerStatefulWidget {
ConsumerState createState() => _AssetViewerState();
static void setAsset(WidgetRef ref, BaseAsset asset) {
// Always dim the background
ref.read(assetViewerProvider.notifier).setOpacity(255);
// Always holds the current asset from the timeline
ref.read(assetViewerProvider.notifier).setAsset(asset);
// The currentAssetNotifier actually holds the current asset that is displayed