diff --git a/lib/components/Lyrics/SyncedLyrics.dart b/lib/components/Lyrics/SyncedLyrics.dart index 1610460e..838c91d6 100644 --- a/lib/components/Lyrics/SyncedLyrics.dart +++ b/lib/components/Lyrics/SyncedLyrics.dart @@ -221,22 +221,23 @@ class SyncedLyrics extends HookConsumerWidget { : Center( child: Padding( padding: const EdgeInsets.all(8.0), - child: AutoSizeText( - lyricSlice.text, - maxLines: 2, - style: Theme.of(context) - .textTheme - .headline4 - ?.copyWith( - color: isActive - ? Colors.white - : palette.bodyTextColor, - // indicating the active state of that lyric slice - fontWeight: isActive - ? FontWeight.bold - : null, - ), - textAlign: TextAlign.center, + child: AnimatedDefaultTextStyle( + duration: const Duration( + milliseconds: 250), + style: TextStyle( + color: isActive + ? Colors.white + : palette.bodyTextColor, + fontWeight: isActive + ? FontWeight.bold + : FontWeight.normal, + fontSize: isActive ? 30 : 26, + ), + child: Text( + lyricSlice.text, + maxLines: 2, + textAlign: TextAlign.center, + ), ), ), ),