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

The Youtube Controller dispose is giving an error #937

Open
Amodh2022 opened this issue Apr 17, 2024 · 1 comment
Open

The Youtube Controller dispose is giving an error #937

Amodh2022 opened this issue Apr 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Amodh2022
Copy link

A YoutubePlayerController was used after being disposed.
Once you have called dispose() on a YoutubePlayerController, it can no longer be used.
#0 ChangeNotifier.debugAssertNotDisposed. (package:flutter/src/foundation/change_notifier.dart:179:9)
#1 ChangeNotifier.debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:186:6)
#2 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:412:27)
#3 ValueNotifier.value= (package:flutter/src/foundation/change_notifier.dart:555:5)
#4 YoutubePlayerController.updateValue (package:youtube_player_flutter/src/utils/youtube_player_controller.dart:181:52)
#5 _RawYoutubePlayerState.build.. (package:youtube_player_flutter/src/player/raw_youtube_player.dart:210:29)
#6 AndroidInAppWebViewController._handleMethod (package:flutter_inappwebview_android/src/in_app_webview/in_app_webview_controller.dart:1542:73)
#7 InternalChannelController.initMethodCallHandler. (package:flutter_inappwebview_platform_interface/src/util.dart:631:30)

This is the error what im getting when the dispose method is called

@Amodh2022 Amodh2022 added the bug Something isn't working label Apr 17, 2024
@chrisynchen
Copy link

Fixed here. @sarbagyastha could you please help me to take a look?
#936

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants