Youtube_player_flutter: [バグ] YoutubePlayerControllerは廃棄後に使用されました。

作成日 2019年11月11日  ·  3コメント  ·  ソース: sarbagyastha/youtube_player_flutter

バグを説明する
YoutubePlayerControllerでライブブロードキャスト機能を使用して、前のページに移動したとき。

Navigator.of(context).pop();

エラー

════════ 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
...
════════════════════════════════════════════════════════════════════════════════
bug fixed

全てのコメント3件

@HiIamAlanOu今夜修正して公開します。

ありがとう。

バージョン6.0.1で修正

このページは役に立ちましたか?
0 / 5 - 0 評価