Open abdelaziz-mahdy opened 2 weeks ago
thanks to https://github.com/media-kit/media-kit/issues/776#issuecomment-2111430301 pointing out that we are missing some disposes, i added them to avoid memory leaks
also i moved the context lookup to didChangeDependencies to fix Looking up a deactivated widget's ancestor is unsafe.
didChangeDependencies
Looking up a deactivated widget's ancestor is unsafe.
the dispose is conditional to avoid wrong disposes when moving out of the fullscreen to normal player
thanks to https://github.com/media-kit/media-kit/issues/776#issuecomment-2111430301 pointing out that we are missing some disposes, i added them to avoid memory leaks
also i moved the context lookup to
didChangeDependencies
to fixLooking up a deactivated widget's ancestor is unsafe.
the dispose is conditional to avoid wrong disposes when moving out of the fullscreen to normal player