Browse Source

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

vishnukvmd 3 years ago
parent
commit
b46288ccc8
1 changed files with 3 additions and 1 deletions
  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) {
             _shouldHideAppBar = isPlaying;
-            _toggleFullScreen();
+            Future.delayed(Duration.zero, () {
+              _toggleFullScreen();
+            });
           },
         );
         _preloadFiles(index);