diff --git a/lib/pages/video/widgets/header_control.dart b/lib/pages/video/widgets/header_control.dart index 94450cb15e..1817cccbd9 100644 --- a/lib/pages/video/widgets/header_control.dart +++ b/lib/pages/video/widgets/header_control.dart @@ -155,7 +155,7 @@ mixin TimeBatteryMixin on State { 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: () { @@ -1384,14 +1384,6 @@ class HeaderControlState extends State 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: () {