@@ -54,47 +54,40 @@ class _IntensiveListenSettingsSheet extends ConsumerWidget {
5454 // 播放速度(手动/自动模式下都生效)
5555 _buildPlaybackSpeedSection (l10n, theme, settings, ref),
5656
57- // 循环次数和停顿设置仅在自动模式下显示
58- if (! settings.isManualMode) ...[
59- const SizedBox (height: AppSpacing .l),
57+ const SizedBox (height: AppSpacing .l),
6058
61- // 每句循环次数
62- _buildRepeatCountRow (l10n, theme, settings, ref),
63- if (settings.repeatCount != 1 )
64- SwitchListTile (
65- contentPadding: EdgeInsets .zero,
66- title: Text (
67- l10n.intensiveListenAnnotationReplayUsesRepeatCount,
68- ),
69- value: settings.annotationReplayUsesRepeatCount,
70- onChanged: (value) {
71- ref
72- .read (intensiveListenPlayerProvider.notifier)
73- .updateSettings (
74- settings.copyWith (
75- annotationReplayUsesRepeatCount: value,
76- ),
77- );
78- },
79- ),
80- const SizedBox (height: AppSpacing .l),
59+ // 两种控制模式共用循环次数与停顿设置。
60+ _buildRepeatCountRow (l10n, theme, settings, ref),
61+ if (settings.repeatCount != 1 )
62+ SwitchListTile (
63+ contentPadding: EdgeInsets .zero,
64+ title: Text (l10n.intensiveListenAnnotationReplayUsesRepeatCount),
65+ value: settings.annotationReplayUsesRepeatCount,
66+ onChanged: (value) {
67+ ref
68+ .read (intensiveListenPlayerProvider.notifier)
69+ .updateSettings (
70+ settings.copyWith (annotationReplayUsesRepeatCount: value),
71+ );
72+ },
73+ ),
74+ const SizedBox (height: AppSpacing .l),
8175
82- // 句间停顿
83- Text (
84- l10n.intensiveListenPauseLabel,
85- style: theme.textTheme.titleSmall? .copyWith (
86- fontWeight: FontWeight .w600,
87- ),
76+ // 句间停顿
77+ Text (
78+ l10n.intensiveListenPauseLabel,
79+ style: theme.textTheme.titleSmall? .copyWith (
80+ fontWeight: FontWeight .w600,
8881 ),
89- const SizedBox (height: AppSpacing .s),
82+ ),
83+ const SizedBox (height: AppSpacing .s),
9084
91- // 模式切换
92- _buildPauseModeSelector (l10n, settings, ref),
93- const SizedBox (height: AppSpacing .m),
85+ // 模式切换
86+ _buildPauseModeSelector (l10n, settings, ref),
87+ const SizedBox (height: AppSpacing .m),
9488
95- // 模式详情
96- _buildPauseModeDetail (l10n, theme, settings, ref),
97- ],
89+ // 模式详情
90+ _buildPauseModeDetail (l10n, theme, settings, ref),
9891 ],
9992 ),
10093 );
0 commit comments