Skip to content

Commit

Permalink
fix: lyrics page blur in player and cut off text when line too big
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Jun 28, 2023
1 parent b041887 commit 6b4584e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
20 changes: 10 additions & 10 deletions lib/pages/lyrics/lyrics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ class LyricsPage extends HookConsumerWidget {
return DefaultTabController(
length: 2,
child: SafeArea(
child: Container(
clipBehavior: Clip.hardEdge,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background.withOpacity(.4),
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(10),
topRight: Radius.circular(10),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 15, sigmaY: 15),
child: Container(
clipBehavior: Clip.hardEdge,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background.withOpacity(.4),
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(10),
topRight: Radius.circular(10),
),
),
),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 15, sigmaY: 15),
child: Column(
children: [
const SizedBox(height: 5),
Expand Down
5 changes: 2 additions & 3 deletions lib/pages/lyrics/synced_lyrics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,13 @@ class SyncedLyrics extends HookConsumerWidget {
? Colors.white
: palette.bodyTextColor,
fontWeight: isActive
? FontWeight.bold
? FontWeight.w500
: FontWeight.normal,
fontSize: (isActive ? 30 : 26) *
fontSize: (isActive ? 28 : 26) *
(textZoomLevel.value / 100),
),
child: Text(
lyricSlice.text,
maxLines: 2,
textAlign: TextAlign.center,
),
),
Expand Down

0 comments on commit 6b4584e

Please sign in to comment.