fix: remove stop code as there is no memory leak now

This commit is contained in:
Prateek Sunal
2025-03-04 15:36:36 +05:30
parent de2bd40401
commit ebab9fd1a0

View File

@@ -178,9 +178,7 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>
@override
void dispose() {
_subscription?.cancel();
_controller?.stop();
_controller?.dispose();
_controller = null;
//https://github.com/fluttercandies/flutter_photo_manager/blob/8afba2745ebaac6af8af75de9cbded9157bc2690/README.md#clear-caches
if (_shouldClearCache) {