Ben Hagen пре 6 година
родитељ
комит
60f34322b7
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      analysis_options.yaml
  2. 1 1
      lib/src/chewie_player.dart

+ 1 - 0
analysis_options.yaml

@@ -5,6 +5,7 @@ analyzer:
 
 linter:
   rules:
+    - await_only_futures
     - cancel_subscriptions
     - close_sinks
     - hash_and_equals

+ 1 - 1
lib/src/chewie_player.dart

@@ -266,7 +266,7 @@ class ChewieController extends ChangeNotifier {
 
     if (fullScreenByDefault) {
       videoPlayerController.addListener(() async {
-        if (await videoPlayerController.value.isPlaying && !_isFullScreen) {
+        if (videoPlayerController.value.isPlaying && !_isFullScreen) {
           enterFullScreen();
         }
       });