File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -4526,6 +4526,15 @@ Future<void> _deleteSongFile(Song song) async {
4526
4526
_lrcData! .lyrics.any ((line) => line.lyrics.trim ().isNotEmpty);
4527
4527
}
4528
4528
4529
+ bool _rupdateLyricsStatus () {
4530
+ _hasLyrics =
4531
+ _lrcData != null &&
4532
+ _lrcData! .lyrics.isNotEmpty &&
4533
+ _lrcData! .lyrics.any ((line) => line.lyrics.trim ().isNotEmpty);
4534
+
4535
+ return _hasLyrics;
4536
+ }
4537
+
4529
4538
@override
4530
4539
void didUpdateWidget (MusicPlayerScreen oldWidget) {
4531
4540
super .didUpdateWidget (oldWidget);
@@ -5134,7 +5143,7 @@ Future<void> _deleteSongFile(Song song) async {
5134
5143
sharedBreathingValue: _breathingAnimation.value,
5135
5144
),
5136
5145
),
5137
- if (_showLyrics && _lrcData != null )
5146
+ if (_showLyrics && _lrcData != null && _rupdateLyricsStatus () )
5138
5147
Positioned .fill (
5139
5148
child: LyricsOverlay (
5140
5149
key: ValueKey (currentSong.path),
You can’t perform that action at this time.
0 commit comments