desktop: hide lyrics button
This commit is contained in:
parent
87c9733f51
commit
475787f433
|
|
@ -337,7 +337,7 @@ class PlayerScreenDesktop extends StatelessWidget {
|
||||||
Flexible(
|
Flexible(
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints: BoxConstraints.loose(const Size.square(500)),
|
constraints: BoxConstraints.loose(const Size.square(500)),
|
||||||
child: const BigAlbumArt()),
|
child: const BigAlbumArt(showLyricsButton: false)),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 24.0),
|
padding: const EdgeInsets.symmetric(horizontal: 24.0),
|
||||||
|
|
@ -843,7 +843,8 @@ class PlaybackControls extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
class BigAlbumArt extends StatefulWidget {
|
class BigAlbumArt extends StatefulWidget {
|
||||||
const BigAlbumArt({super.key});
|
final bool showLyricsButton;
|
||||||
|
const BigAlbumArt({super.key, this.showLyricsButton = true});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<BigAlbumArt> createState() => _BigAlbumArtState();
|
State<BigAlbumArt> createState() => _BigAlbumArtState();
|
||||||
|
|
@ -968,6 +969,7 @@ class _BigAlbumArtState extends State<BigAlbumArt> with WidgetsBindingObserver {
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
}),
|
}),
|
||||||
|
if (widget.showLyricsButton)
|
||||||
StreamBuilder<MediaItem?>(
|
StreamBuilder<MediaItem?>(
|
||||||
initialData: audioHandler.mediaItem.valueOrNull,
|
initialData: audioHandler.mediaItem.valueOrNull,
|
||||||
stream: audioHandler.mediaItem,
|
stream: audioHandler.mediaItem,
|
||||||
|
|
@ -1257,7 +1259,6 @@ class BottomBarControls extends StatelessWidget {
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
QualityInfoWidget(textSize: size * 0.75),
|
QualityInfoWidget(textSize: size * 0.75),
|
||||||
const Expanded(child: SizedBox()),
|
const Expanded(child: SizedBox()),
|
||||||
|
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.sentiment_very_dissatisfied,
|
Icons.sentiment_very_dissatisfied,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue