Jelajahi Sumber

Push toggle full screen action to the end of the build queue

vishnukvmd 3 tahun lalu
induk
melakukan
b46288ccc8
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      lib/ui/detail_page.dart

+ 3 - 1
lib/ui/detail_page.dart

@@ -145,7 +145,9 @@ class _DetailPageState extends State<DetailPage> {
           },
           },
           playbackCallback: (isPlaying) {
           playbackCallback: (isPlaying) {
             _shouldHideAppBar = isPlaying;
             _shouldHideAppBar = isPlaying;
-            _toggleFullScreen();
+            Future.delayed(Duration.zero, () {
+              _toggleFullScreen();
+            });
           },
           },
         );
         );
         _preloadFiles(index);
         _preloadFiles(index);