Commit d4a7dfc41500c56559ecc97daf2d5820934b8f98
1 parent
45390cfc
feat:逻辑调整
Showing
2 changed files
with
9 additions
and
2 deletions
lib/pages/listen/widgets/listen_item_widget.dart
lib/pages/repeataftercontent/repeat_after_content_page.dart
... | ... | @@ -6,6 +6,7 @@ import 'package:wow_english/pages/repeataftercontent/bloc/repeat_after_content_b |
6 | 6 | import 'package:wow_english/route/route.dart'; |
7 | 7 | |
8 | 8 | import '../../common/core/user_util.dart'; |
9 | +import '../../utils/toast_util.dart'; | |
9 | 10 | import 'widgets/repeat_video_widget.dart'; |
10 | 11 | |
11 | 12 | class RepeatAfterContentPage extends StatelessWidget { |
... | ... | @@ -198,7 +199,13 @@ class _RepeatAfterContentPage extends StatelessWidget { |
198 | 199 | children: [ |
199 | 200 | 20.verticalSpace, |
200 | 201 | IconButton( |
201 | - onPressed: ()=>bloc.add(VoiceRecordEvent()), | |
202 | + onPressed: () { | |
203 | + if (bloc.videoPlaying) { | |
204 | + showToast('视频正在播放中'); | |
205 | + return; | |
206 | + } | |
207 | + bloc.add(VoiceRecordEvent()); | |
208 | + }, | |
202 | 209 | icon: Image.asset( |
203 | 210 | 'video_record'.assetPng, |
204 | 211 | height: 53.h, | ... | ... |