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