[Bugfix] Properly show FAB in ScreenLayout.dual

This commit is contained in:
PartyDonut 2024-10-06 19:49:51 +02:00
parent aaa6a737cb
commit c4f33e5039
3 changed files with 3 additions and 12 deletions

View file

@ -65,7 +65,7 @@ class _NavigationScaffoldState extends ConsumerState<NavigationScaffold> {
extendBody: true,
floatingActionButtonLocation:
playerState == VideoPlayerState.minimized ? FloatingActionButtonLocation.centerFloat : null,
floatingActionButton: AdaptiveLayout.of(context).layout == LayoutState.phone
floatingActionButton: AdaptiveLayout.of(context).size == ScreenLayout.single
? switch (playerState) {
VideoPlayerState.minimized => const Padding(
padding: EdgeInsets.symmetric(horizontal: 8),