mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -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,
|
playerState == VideoPlayerState.minimized ? FloatingActionButtonAnimator.noAnimation : null,
|
||||||
floatingActionButtonLocation:
|
floatingActionButtonLocation:
|
||||||
playerState == VideoPlayerState.minimized ? FloatingActionButtonLocation.centerFloat : null,
|
playerState == VideoPlayerState.minimized ? FloatingActionButtonLocation.centerFloat : null,
|
||||||
floatingActionButton: AdaptiveLayout.layoutModeOf(context) == LayoutMode.single &&
|
floatingActionButton: AdaptiveLayout.layoutModeOf(context) == LayoutMode.single && isHomeRoutes
|
||||||
AdaptiveLayout.viewSizeOf(context) == ViewSize.phone &&
|
|
||||||
isHomeRoutes
|
|
||||||
? switch (playerState) {
|
? switch (playerState) {
|
||||||
VideoPlayerState.minimized => const Padding(
|
VideoPlayerState.minimized => AdaptiveLayout.viewSizeOf(context) == ViewSize.phone
|
||||||
padding: EdgeInsets.symmetric(horizontal: 8),
|
? const Padding(
|
||||||
child: FloatingPlayerBar(),
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
||||||
),
|
child: FloatingPlayerBar(),
|
||||||
|
)
|
||||||
|
: null,
|
||||||
_ => currentIndex != -1
|
_ => currentIndex != -1
|
||||||
? widget.destinations.elementAtOrNull(currentIndex)?.floatingActionButton?.normal
|
? widget.destinations.elementAtOrNull(currentIndex)?.floatingActionButton?.normal
|
||||||
: null,
|
: null,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue