mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-12 17:00:29 -07:00
fix: Hide duplicate floating player in phone layout (#218)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
fe96c7e258
commit
cf53f02d90
5 changed files with 16 additions and 2 deletions
|
|
@ -78,6 +78,8 @@ class _DetailScaffoldState extends ConsumerState<DetailScaffold> {
|
|||
},
|
||||
refreshOnStart: true,
|
||||
child: Scaffold(
|
||||
floatingActionButtonAnimator:
|
||||
playerState == VideoPlayerState.minimized ? FloatingActionButtonAnimator.noAnimation : null,
|
||||
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
|
||||
floatingActionButton: switch (playerState) {
|
||||
VideoPlayerState.minimized => const Padding(
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ class NestedScaffold extends ConsumerWidget {
|
|||
return Card(
|
||||
child: Scaffold(
|
||||
backgroundColor: Colors.transparent,
|
||||
floatingActionButtonAnimator:
|
||||
playerState == VideoPlayerState.minimized ? FloatingActionButtonAnimator.noAnimation : null,
|
||||
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
|
||||
floatingActionButton: switch (AdaptiveLayout.layoutOf(context)) {
|
||||
ViewSize.phone => null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue