mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix: track stops at last second
This commit is contained in:
parent
0cfe430e27
commit
f554f6d43b
@ -138,6 +138,7 @@ class SyncedLyrics extends HookConsumerWidget {
|
|||||||
: FontWeight.normal,
|
: FontWeight.normal,
|
||||||
fontSize: (isActive ? 28 : 26) *
|
fontSize: (isActive ? 28 : 26) *
|
||||||
(textZoomLevel.value / 100),
|
(textZoomLevel.value / 100),
|
||||||
|
shadows: kElevationToShadow[9],
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
lyricSlice.text,
|
lyricSlice.text,
|
||||||
|
@ -141,6 +141,15 @@ class ProxyPlaylistNotifier extends PersistedStateNotifier<ProxyPlaylist>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (oldTrack != null && track != null) {
|
||||||
|
await storeTrack(
|
||||||
|
oldTrack,
|
||||||
|
track,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
isPreSearching = false;
|
||||||
|
|
||||||
/// Sometimes fetching can take a lot of time, so we need to check
|
/// Sometimes fetching can take a lot of time, so we need to check
|
||||||
/// if next source is playable or not at 99% progress. If not, then
|
/// if next source is playable or not at 99% progress. If not, then
|
||||||
/// it'll be paused automatically
|
/// it'll be paused automatically
|
||||||
@ -151,15 +160,6 @@ class ProxyPlaylistNotifier extends PersistedStateNotifier<ProxyPlaylist>
|
|||||||
if (audioPlayer.isPaused) {
|
if (audioPlayer.isPaused) {
|
||||||
await audioPlayer.resume();
|
await audioPlayer.resume();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oldTrack != null && track != null) {
|
|
||||||
await storeTrack(
|
|
||||||
oldTrack,
|
|
||||||
track,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
isPreSearching = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user