mirror of
https://github.com/stonega/tsacdop
synced 2025-02-12 09:30:37 +01:00
Fixed shownote timestamp click error.
This commit is contained in:
parent
5114d6ad4e
commit
8aad960ed8
@ -723,8 +723,9 @@ class _ShowNote extends StatelessWidget {
|
|||||||
return description.length > 0
|
return description.length > 0
|
||||||
? Selector<AudioPlayerNotifier, EpisodeBrief>(
|
? Selector<AudioPlayerNotifier, EpisodeBrief>(
|
||||||
selector: (_, audio) => audio.episode,
|
selector: (_, audio) => audio.episode,
|
||||||
builder: (_, data, __) {
|
builder: (_, playEpisode, __) {
|
||||||
if (data == episode && !description.contains('#t=')) {
|
if (playEpisode == episode &&
|
||||||
|
!description.contains('#t=')) {
|
||||||
final linkList = linkify(description,
|
final linkList = linkify(description,
|
||||||
options: LinkifyOptions(humanize: false),
|
options: LinkifyOptions(humanize: false),
|
||||||
linkifiers: [TimeStampLinkifier()]);
|
linkifiers: [TimeStampLinkifier()]);
|
||||||
@ -749,7 +750,7 @@ class _ShowNote extends StatelessWidget {
|
|||||||
onLinkTap: (url) {
|
onLinkTap: (url) {
|
||||||
if (url.substring(0, 3) == '#t=') {
|
if (url.substring(0, 3) == '#t=') {
|
||||||
final seconds = _getTimeStamp(url);
|
final seconds = _getTimeStamp(url);
|
||||||
if (data == episode) {
|
if (playEpisode == episode) {
|
||||||
audio.seekTo(seconds * 1000);
|
audio.seekTo(seconds * 1000);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user