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