From 112820cb8a22022f617421e628c51140cee3f1db Mon Sep 17 00:00:00 2001 From: DJDoubleD <34967020+DJDoubleD@users.noreply.github.com> Date: Sat, 14 Sep 2024 22:23:52 +0200 Subject: [PATCH] Use LyricsIconButton also in horizontal player screen (fixes #19) - also removed obsolete commented out code --- lib/ui/player_screen.dart | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/lib/ui/player_screen.dart b/lib/ui/player_screen.dart index 42bca03..806be6b 100644 --- a/lib/ui/player_screen.dart +++ b/lib/ui/player_screen.dart @@ -258,19 +258,7 @@ class _PlayerScreenHorizontalState extends State { mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - IconButton( - icon: Icon( - //Icons.subtitles, - ReFreezerIcons.lyrics_mic, - size: ScreenUtil().setWidth(12), - semanticLabel: 'Lyrics'.i18n, - ), - onPressed: () { - Navigator.of(context).push(MaterialPageRoute( - builder: (context) => - LyricsScreen(trackId: GetIt.I().mediaItem.value!.id))); - }, - ), + LyricsIconButton(12, afterOnPressed: updateColor), IconButton( icon: Icon( Icons.file_download, @@ -378,29 +366,6 @@ class _PlayerScreenVerticalState extends State { mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - /*IconButton( - icon: Icon( - //Icons.lyrics, - ReFreezerIcons.lyrics_mic, - size: ScreenUtil().setWidth(20), - semanticLabel: 'Lyrics'.i18n, - ), - onPressed: () async { - //Fix bottom buttons - SystemChrome.setSystemUIOverlayStyle( - const SystemUiOverlayStyle( - statusBarColor: Colors.transparent)); - - await Navigator.of(context).push(MaterialPageRoute( - builder: (context) => LyricsScreen( - trackId: GetIt.I() - .mediaItem - .value! - .id))); - - updateColor(); - }, - ),*/ LyricsIconButton(20, afterOnPressed: updateColor), IconButton( icon: Icon(