mirror of
https://github.com/immich-app/immich.git
synced 2025-12-18 09:13:15 +03:00
fix: asset viewer background isn't shown (#22161)
* fix: asset viewer background isn't shown * pr feedback
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user