mirror of
https://github.com/DJDoubleD/refreezer.git
synced 2026-01-15 16:32:54 -03:00
Use LyricsIconButton also in horizontal player screen (fixes #19)
- also removed obsolete commented out code
This commit is contained in:
@@ -258,19 +258,7 @@ class _PlayerScreenHorizontalState extends State<PlayerScreenHorizontal> {
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
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<AudioPlayerHandler>().mediaItem.value!.id)));
|
||||
},
|
||||
),
|
||||
LyricsIconButton(12, afterOnPressed: updateColor),
|
||||
IconButton(
|
||||
icon: Icon(
|
||||
Icons.file_download,
|
||||
@@ -378,29 +366,6 @@ class _PlayerScreenVerticalState extends State<PlayerScreenVertical> {
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
/*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<AudioPlayerHandler>()
|
||||
.mediaItem
|
||||
.value!
|
||||
.id)));
|
||||
|
||||
updateColor();
|
||||
},
|
||||
),*/
|
||||
LyricsIconButton(20, afterOnPressed: updateColor),
|
||||
IconButton(
|
||||
icon: Icon(
|
||||
|
||||
Reference in New Issue
Block a user