Commit d4a7dfc41500c56559ecc97daf2d5820934b8f98

Authored by liangchengyou
1 parent 45390cfc

feat:逻辑调整

lib/pages/listen/widgets/listen_item_widget.dart
... ... @@ -22,7 +22,7 @@ class ListenItemWidget extends StatelessWidget {
22 22 if (entity?.lock??false) {
23 23 return;
24 24 }
25   - clickEvent?.call();
  25 + clickEvent.call();
26 26 },
27 27 child: ClipRRect(
28 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 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,
... ...