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

This commit is contained in:
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

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;