Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions lib/pages/video/widgets/header_control.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ mixin TimeBatteryMixin<T extends StatefulWidget> on State<T> {
SliverList.builder(
itemCount: videoDetailCtr.subtitles.length + 1,
itemBuilder: (context, index) {
final bool isCurrent = videoDetailCtr.subtitle.value == index;
final bool isCurrent = videoDetailCtr.vttSubtitlesIndex.value == index;
return ListTile(
dense: true,
onTap: () {
Expand Down Expand Up @@ -1384,14 +1384,6 @@ class HeaderControlState extends State<HeaderControl>
leading: const Icon(Icons.subtitles_outlined, size: 20),
title: const Text('字幕', style: titleStyle),
),
SwitchListTile(
value: videoDetailCtr.vttSubtitlesIndex.value > 0,
onChanged: (value) {
videoDetailCtr.setSubtitle(value ? 1 : 0);
},
secondary: const Icon(Icons.subtitles_outlined, size: 20),
title: const Text('开启字幕', style: titleStyle),
),
ListTile(
dense: true,
onTap: () {
Expand Down
Loading