Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <title> Dispose issue #990

Open
1 task done
Onnesok opened this issue Sep 13, 2024 · 1 comment
Open
1 task done

[BUG] <title> Dispose issue #990

Onnesok opened this issue Sep 13, 2024 · 1 comment
Assignees

Comments

@Onnesok
Copy link

Onnesok commented Sep 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Package

youtube_player_iframe (Default)

What happened?

on video player screen pop video player still stays for some time.... Disposing taking longer time....

  @override
  void dispose() async {
    if (_controller.value.isFullScreen) {
      _controller.toggleFullScreenMode();
    } else {
      await Future.delayed(const Duration(milliseconds: 200));
      _controller.dispose();
    }

    SystemChrome.setPreferredOrientations([
      DeviceOrientation.portraitUp,
      DeviceOrientation.landscapeLeft,
      DeviceOrientation.landscapeRight,
    ]);

    super.dispose();
  }

What is the expected behaviour?

Pop with other screens not after.....

How to reproduce?

on pop return to another page

Flutter Doctor Output

_dependents.isEmpty
@lukiholzi
Copy link

Any updates on this? I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants