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

This commit is contained in:
Saschl 2025-10-08 15:31:15 +02:00 committed by Chaoscontrol
parent 89bc7b51bf
commit 60ecbfe1e4

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;