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

This commit is contained in:
vishnukvmd 2021-10-06 16:18:54 +05:30
parent 335cf908fb
commit b46288ccc8

View file

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