mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
fix: Floating actionbutton hidden in single and !phone mode
This commit is contained in:
parent
c561a0be96
commit
1970d7e749
1 changed files with 7 additions and 7 deletions
|
|
@ -72,14 +72,14 @@ class _NavigationScaffoldState extends ConsumerState<NavigationScaffold> {
|
|||
playerState == VideoPlayerState.minimized ? FloatingActionButtonAnimator.noAnimation : null,
|
||||
floatingActionButtonLocation:
|
||||
playerState == VideoPlayerState.minimized ? FloatingActionButtonLocation.centerFloat : null,
|
||||
floatingActionButton: AdaptiveLayout.layoutModeOf(context) == LayoutMode.single &&
|
||||
AdaptiveLayout.viewSizeOf(context) == ViewSize.phone &&
|
||||
isHomeRoutes
|
||||
floatingActionButton: AdaptiveLayout.layoutModeOf(context) == LayoutMode.single && isHomeRoutes
|
||||
? switch (playerState) {
|
||||
VideoPlayerState.minimized => const Padding(
|
||||
VideoPlayerState.minimized => AdaptiveLayout.viewSizeOf(context) == ViewSize.phone
|
||||
? const Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 8),
|
||||
child: FloatingPlayerBar(),
|
||||
),
|
||||
)
|
||||
: null,
|
||||
_ => currentIndex != -1
|
||||
? widget.destinations.elementAtOrNull(currentIndex)?.floatingActionButton?.normal
|
||||
: null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue