From fad7e64fd32e97854d70fefbff63e69d348f7e1c Mon Sep 17 00:00:00 2001 From: zarzet <42882290+zarzet@users.noreply.github.com> Date: Sun, 27 Sep 2026 17:48:11 +0700 Subject: [PATCH] fix(player): align Material lyrics toggle to bottom left --- lib/screens/now_playing_screen.dart | 34 +++++++++++++++++------------ 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/lib/screens/now_playing_screen.dart b/lib/screens/now_playing_screen.dart index 87c8f80d..84757187 100644 --- a/lib/screens/now_playing_screen.dart +++ b/lib/screens/now_playing_screen.dart @@ -785,20 +785,26 @@ class _NowPlayingScreenState extends ConsumerState { ), ) else if (!mornye) - ExpressiveIconButton( - key: const ValueKey('material-lyrics-toggle'), - tooltip: _currentPage == 1 - ? context.l10n.nowPlayingTabPlayer - : context.l10n.nowPlayingTabLyrics, - selected: _currentPage == 1, - foregroundColor: _currentPage == 1 - ? colorScheme.onPrimaryContainer - : colorScheme.onSurfaceVariant, - backgroundColor: _currentPage == 1 - ? colorScheme.primaryContainer - : null, - icon: const Icon(Icons.lyrics_outlined), - onPressed: _toggleMaterialLyrics, + Padding( + padding: const EdgeInsets.symmetric(horizontal: 28), + child: Align( + alignment: Alignment.centerLeft, + child: ExpressiveIconButton( + key: const ValueKey('material-lyrics-toggle'), + tooltip: _currentPage == 1 + ? context.l10n.nowPlayingTabPlayer + : context.l10n.nowPlayingTabLyrics, + selected: _currentPage == 1, + foregroundColor: _currentPage == 1 + ? colorScheme.onPrimaryContainer + : colorScheme.onSurfaceVariant, + backgroundColor: _currentPage == 1 + ? colorScheme.primaryContainer + : null, + icon: const Icon(Icons.lyrics_outlined), + onPressed: _toggleMaterialLyrics, + ), + ), ), if (!_landscape) const SizedBox(height: 8), ],