mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-18 19:56:32 -07:00
feature: Version selection (#235)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
935d6fe176
commit
f0414439f3
13 changed files with 142 additions and 60 deletions
|
|
@ -106,4 +106,12 @@ class EpisodeDetailsProvider extends StateNotifier<EpisodeDetailModel> {
|
|||
defaultAudioStreamIndex: index,
|
||||
)));
|
||||
}
|
||||
|
||||
void setVersionIndex(int index) {
|
||||
state = state.copyWith(
|
||||
episode: state.episode?.copyWith(
|
||||
mediaStreams: state.episode?.mediaStreams.copyWith(
|
||||
versionStreamIndex: index,
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue