From b46288ccc8bfa33caf1e9f7ffbca72fcab569b03 Mon Sep 17 00:00:00 2001 From: vishnukvmd Date: Wed, 6 Oct 2021 16:18:54 +0530 Subject: [PATCH] Push toggle full screen action to the end of the build queue --- lib/ui/detail_page.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/detail_page.dart b/lib/ui/detail_page.dart index 82d494908..dcf7a651d 100644 --- a/lib/ui/detail_page.dart +++ b/lib/ui/detail_page.dart @@ -145,7 +145,9 @@ class _DetailPageState extends State { }, playbackCallback: (isPlaying) { _shouldHideAppBar = isPlaying; - _toggleFullScreen(); + Future.delayed(Duration.zero, () { + _toggleFullScreen(); + }); }, ); _preloadFiles(index);