mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: asset viewer background isn't shown (#22161)
* fix: asset viewer background isn't shown * pr feedback
This commit is contained in:
parent
0b60cc8965
commit
2411bf8374
2 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue