From 31fdfdbc3149925dab0199a11ccb21cfab879de5 Mon Sep 17 00:00:00 2001 From: Yegor Jbanov Date: Wed, 26 Sep 2018 10:45:28 -0700 Subject: [PATCH] use WidgetsBindingObserver as a mixin --- packages/video_player/lib/video_player.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/video_player/lib/video_player.dart b/packages/video_player/lib/video_player.dart index 68c7df6f2e39..1d13fa1c8f20 100644 --- a/packages/video_player/lib/video_player.dart +++ b/packages/video_player/lib/video_player.dart @@ -393,7 +393,7 @@ class VideoPlayerController extends ValueNotifier { } } -class _VideoAppLifeCycleObserver extends WidgetsBindingObserver { +class _VideoAppLifeCycleObserver extends Object with WidgetsBindingObserver { bool _wasPlayingBeforePause = false; final VideoPlayerController _controller;