Describe the bug
When i use live broadcast function on YoutubePlayerController, and pop to the previous page.
Navigator.of(context).pop();
Error
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following assertion was thrown while finalizing the widget tree:
A YoutubePlayerController was used after being disposed.
Once you have called dispose() on a YoutubePlayerController, it can no longer be used.
When the exception was thrown, this was the stack
#0 ChangeNotifier._debugAssertNotDisposed.<anonymous closure>
package:flutter/โฆ/foundation/change_notifier.dart:105
#1 ChangeNotifier._debugAssertNotDisposed
package:flutter/โฆ/foundation/change_notifier.dart:111
#2 ChangeNotifier.removeListener
package:flutter/โฆ/foundation/change_notifier.dart:166
#3 _PlayPauseButtonState.dispose
package:youtube_player_flutter/โฆ/widgets/play_pause_button.dart:60
#4 StatefulElement.unmount
package:flutter/โฆ/widgets/framework.dart:4142
...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
@HiIamAlanOu Will publish with fix tonight.
Thank u.
Fixed in Version 6.0.1