fix: brief flashing when swiping from video (#22187)

pull/22733/head^2
Saschl 2025-10-08 15:31:15 +02:00 committed by GitHub
parent 265ed0b38f
commit 54ed78d0bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -322,6 +322,9 @@ class NativeVideoViewer extends HookConsumerWidget {
removeListeners(playerController);
}
if (value != null) {
isVisible.value = _isCurrentAsset(value, asset);
}
final curAsset = currentAsset.value;
if (curAsset == asset) {
return;