Blame view

lib/pages/practice/topic_picture_page.dart 16.9 KB
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
1
2
3
  import 'package:flutter/material.dart';
  import 'package:flutter_bloc/flutter_bloc.dart';
  import 'package:flutter_screenutil/flutter_screenutil.dart';
e3c2820c   liangchengyou   feat:先声SDK逻辑调整
4
  import 'package:wow_english/common/core/user_util.dart';
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
5
6
  import 'package:wow_english/common/extension/string_extension.dart';
  import 'package:wow_english/common/widgets/ow_image_widget.dart';
2eb67dd4   liangchengyou   feat:调整代码
7
  import 'package:wow_english/models/course_process_entity.dart';
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
8
9
10
11
12
  
  import 'bloc/topic_picture_bloc.dart';
  import 'widgets/practice_header_widget.dart';
  
  class TopicPicturePage extends StatelessWidget {
608c05b4   liangchengyou   feat:兑换课程
13
14
15
    const TopicPicturePage({super.key, this.courseLessonId});
  
    final String? courseLessonId;
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
16
17
18
19
  
    @override
    Widget build(BuildContext context) {
      return BlocProvider(
2eb67dd4   liangchengyou   feat:调整代码
20
        create: (context) => TopicPictureBloc(
608c05b4   liangchengyou   feat:兑换课程
21
22
          PageController(),
          courseLessonId??'',
2eb67dd4   liangchengyou   feat:调整代码
23
24
        )
          ..add(RequestDataEvent())
e3c2820c   liangchengyou   feat:先声SDK逻辑调整
25
26
27
28
          ..add(XSVoiceInitEvent(
              {
                'appKey':'a418',
                'secretKey':'1a16f31f2611bf32fb7b3fc38f5b2c81',
b90a1518   liangchengyou   feat:练习接口逻辑完成
29
                'userId':UserUtil.getUser()!.id.toString()
e3c2820c   liangchengyou   feat:先声SDK逻辑调整
30
31
              }
          )),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
32
33
34
35
36
37
38
39
40
        child: _TopicPicturePage(),
      );
    }
  }
  
  class _TopicPicturePage extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return BlocListener<TopicPictureBloc,TopicPictureState>(
2eb67dd4   liangchengyou   feat:调整代码
41
42
        listener: (context, state){
          if (state is RequestDataState) {
608c05b4   liangchengyou   feat:兑换课程
43
            context.read<TopicPictureBloc>().add(CurrentPageIndexChangeEvent(0));
e3c2820c   liangchengyou   feat:先声SDK逻辑调整
44
45
46
47
          }
  
          if (state is XSVoiceTestState) {
  
2eb67dd4   liangchengyou   feat:调整代码
48
49
          }
        },
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
50
51
52
53
54
        child: _topicPictureView(),
      );
    }
  
    Widget _topicPictureView() => BlocBuilder<TopicPictureBloc,TopicPictureState>(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
55
56
57
58
59
60
61
62
63
        builder: (context,state){
          final bloc = BlocProvider.of<TopicPictureBloc>(context);
          return Container(
            color: Colors.white,
            child: Stack(
              children: [
                Column(
                  children: [
                    PracticeHeaderWidget(
2eb67dd4   liangchengyou   feat:调整代码
64
                      title: '${bloc.currentPage}/${bloc.entity?.topics?.length}',
b90a1518   liangchengyou   feat:练习接口逻辑完成
65
66
                      onTap: () {
                        Navigator.pop(context);
e3c2820c   liangchengyou   feat:先声SDK逻辑调整
67
                        },
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
68
69
70
                    ),
                    Expanded(
                      child: PageView.builder(
2eb67dd4   liangchengyou   feat:调整代码
71
                          itemCount: bloc.entity?.topics?.length,
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
72
73
74
75
76
77
                          scrollDirection: Axis.horizontal,
                          controller: bloc.pageController,
                          onPageChanged: (int index) {
                            bloc.add(CurrentPageIndexChangeEvent(index));
                          },
                          itemBuilder: (BuildContext context,int index){
2eb67dd4   liangchengyou   feat:调整代码
78
79
80
81
82
83
84
85
86
87
88
                            CourseProcessTopics? topics = bloc.entity?.topics![index];
                            if (topics?.type == 1) {//听音选图
                              return _pageViewVoicePictureItemWidget(topics);
                            } else if (topics?.type == 2) {//听音选字
                              return _pageViewVoiceWordItemWidget(topics);
                            } else if (topics?.type == 3) {//看题选字
                              return _pageViewWordItemWidget(topics);
                            } else if (topics?.type == 4) {//看题选图
                              return _pageViewItemWidget(topics);
                            } else {//语音问答
                              return _voiceAnswerItem(topics);
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
                            }
                          }),
                    )
                  ],
                ),
                Positioned(
                    left: 0,
                    right: 0,
                    bottom: 0,
                    child: Image.asset('bottom_grass'.assetPng)
                )
              ],
            ),
          );
        });
  
    ///看题选图
2eb67dd4   liangchengyou   feat:调整代码
106
    Widget _pageViewItemWidget(CourseProcessTopics? topics) => BlocBuilder<TopicPictureBloc,TopicPictureState>(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
107
        builder: (context, state){
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
108
109
110
111
          return SafeArea(
            child: Column(
              children: [
                Text(
b90a1518   liangchengyou   feat:练习接口逻辑完成
112
                    topics?.word??'',
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
113
114
115
116
117
118
119
                    softWrap: true,
                    style: TextStyle(
                        fontSize: 21.sp,
                        color: const Color(0xFF333333)
                    )
                ),
                26.verticalSpace,
2eb67dd4   liangchengyou   feat:调整代码
120
121
122
123
                SizedBox(
                  height: 143.h,
                  width: 143.w * (topics?.topicAnswerList?.length??0),
                  child: ListView.builder(
2eb67dd4   liangchengyou   feat:调整代码
124
                      scrollDirection: Axis.horizontal,
b90a1518   liangchengyou   feat:练习接口逻辑完成
125
126
                      physics: const NeverScrollableScrollPhysics(),
                      itemCount: topics?.topicAnswerList?.length??0,
2eb67dd4   liangchengyou   feat:调整代码
127
                      itemBuilder: (context,index){
b90a1518   liangchengyou   feat:练习接口逻辑完成
128
                        return _decodeImageWidget(index,topics?.topicAnswerList?[index]);
2eb67dd4   liangchengyou   feat:调整代码
129
130
                      }),
                ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
131
132
133
134
135
              ],
            ),
          );
        });
  
b90a1518   liangchengyou   feat:练习接口逻辑完成
136
    Widget _decodeImageWidget(int index,CourseProcessTopicsTopicAnswerList? answerLis) => BlocBuilder<TopicPictureBloc,TopicPictureState>(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
137
138
139
        buildWhen: (_, s) => s is SelectItemChangeState,
        builder: (context,state){
          final bloc = BlocProvider.of<TopicPictureBloc>(context);
2eb67dd4   liangchengyou   feat:调整代码
140
141
142
143
          return Container(
            padding: EdgeInsets.symmetric(horizontal: 10.w),
            child: GestureDetector(
              onTap: () => bloc.add(SelectItemEvent(index)),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
144
              child: Container(
2eb67dd4   liangchengyou   feat:调整代码
145
                padding: const EdgeInsets.all(4.5),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
146
                decoration: BoxDecoration(
2eb67dd4   liangchengyou   feat:调整代码
147
148
149
150
151
152
153
154
155
156
157
158
159
                  color: bloc.selectItem == index?const Color(0xFF00B6F1):Colors.white,
                  borderRadius: BorderRadius.circular(15),
                ),
                height: 143.h,
                width: 143.w,
                child: Container(
                  decoration: BoxDecoration(
                      color: Colors.white,
                      borderRadius: BorderRadius.circular(15),
                      border: Border.all(
                          width: 1.0,
                          color: const Color(0xFF140C10)
                      ),
b90a1518   liangchengyou   feat:练习接口逻辑完成
160
                      image: DecorationImage(
2eb67dd4   liangchengyou   feat:调整代码
161
                          fit: BoxFit.fitWidth,
b90a1518   liangchengyou   feat:练习接口逻辑完成
162
                          image: NetworkImage(answerLis?.picUrl??'')
2eb67dd4   liangchengyou   feat:调整代码
163
164
                      )
                  ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
165
166
167
168
169
170
171
                ),
              ),
            ),
          );
        });
  
    ///看题选字
2eb67dd4   liangchengyou   feat:调整代码
172
    Widget _pageViewWordItemWidget(CourseProcessTopics? topics) => BlocBuilder<TopicPictureBloc,TopicPictureState>(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
173
        builder: (context, state){
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
174
175
176
177
          return SafeArea(
            child: Column(
              children: [
                Text(
b90a1518   liangchengyou   feat:练习接口逻辑完成
178
                    topics?.word??'',
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
179
180
181
182
183
184
185
                    softWrap: true,
                    style: TextStyle(
                        fontSize: 21.sp,
                        color: const Color(0xFF333333)
                    )
                ),
                26.verticalSpace,
2eb67dd4   liangchengyou   feat:调整代码
186
187
188
189
                SizedBox(
                  height: 143.h,
                  width: 143.w * (topics?.topicAnswerList?.length??0),
                  child: ListView.builder(
2eb67dd4   liangchengyou   feat:调整代码
190
                      scrollDirection: Axis.horizontal,
b90a1518   liangchengyou   feat:练习接口逻辑完成
191
192
                      itemCount: topics?.topicAnswerList?.length??0,
                      physics: const NeverScrollableScrollPhysics(),
2eb67dd4   liangchengyou   feat:调整代码
193
                      itemBuilder: (context,index){
b90a1518   liangchengyou   feat:练习接口逻辑完成
194
                        return _decodeWordWidget(index,topics?.topicAnswerList?[index]);
2eb67dd4   liangchengyou   feat:调整代码
195
196
                      }),
                ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
197
198
199
200
201
              ],
            ),
          );
        });
  
b90a1518   liangchengyou   feat:练习接口逻辑完成
202
    Widget _decodeWordWidget(int index,CourseProcessTopicsTopicAnswerList? answerLis) => BlocBuilder<TopicPictureBloc,TopicPictureState>(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
203
204
205
        buildWhen: (_, s) => s is SelectItemChangeState,
        builder: (context,state){
          final bloc = BlocProvider.of<TopicPictureBloc>(context);
2eb67dd4   liangchengyou   feat:调整代码
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
          return Container(
            padding: EdgeInsets.symmetric(horizontal: 10.w),
            child: GestureDetector(
              onTap: () => bloc.add(SelectItemEvent(index)),
              child: Container(
                width: 143.w,
                height: 143.h,
                padding: EdgeInsets.only(left: 13.w,right: 13.w,top: 13.h,bottom: 13.h),
                decoration: BoxDecoration(
                  color: Colors.white,
                  borderRadius: BorderRadius.circular(15),
                  border: Border.all(
                      width: 1.0,
                      color: const Color(0xFF140C10)
                  ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
221
                ),
2eb67dd4   liangchengyou   feat:调整代码
222
223
224
225
226
227
228
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.end,
                  children: [
                    Expanded(
                      child: Container(
                        alignment: Alignment.center,
                        child: Text(
b90a1518   liangchengyou   feat:练习接口逻辑完成
229
                            answerLis?.word??'',
2eb67dd4   liangchengyou   feat:调整代码
230
231
232
233
234
                            style: TextStyle(
                                fontSize: 20.sp,
                                color: const Color(0xFF333333)
                            )
                        ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
235
236
                      ),
                    ),
2eb67dd4   liangchengyou   feat:调整代码
237
238
239
240
241
242
243
244
245
246
                    Container(
                      height: 30.h,
                      width: double.infinity,
                      decoration: BoxDecoration(
                        color: bloc.selectItem == index?const Color(0xFF00B6F1):Colors.white,
                        borderRadius: BorderRadius.circular(15.r),
                        border: Border.all(
                            width: 1.5,
                            color: const Color(0xFF140C10)
                        ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
247
                      ),
2eb67dd4   liangchengyou   feat:调整代码
248
249
250
251
252
                      alignment: Alignment.center,
                      child: Image.asset('choose'.assetPng),
                    )
                  ],
                ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
253
254
255
256
257
258
              ),
            ),
          );
        });
  
    ///听音选图
2eb67dd4   liangchengyou   feat:调整代码
259
    Widget _pageViewVoicePictureItemWidget(CourseProcessTopics? topics) => BlocBuilder<TopicPictureBloc,TopicPictureState>(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
260
        builder: (context, state){
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
261
262
263
264
265
266
267
268
269
          return SafeArea(
            child: Column(
              children: [
                Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Image.asset('voice'.assetPng,height: 33.h,width: 30.w,),
                    10.horizontalSpace,
                    Text(
b90a1518   liangchengyou   feat:练习接口逻辑完成
270
                        topics?.word??'',
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
271
272
273
274
275
276
277
278
                        style: TextStyle(
                            fontSize: 20.sp,
                            color: const Color(0xFF333333)
                        )
                    )
                  ],
                ),
                26.verticalSpace,
2eb67dd4   liangchengyou   feat:调整代码
279
280
281
282
283
                SizedBox(
                  height: 143.h,
                  width: 163.w * (topics?.topicAnswerList?.length??0),
                  child: ListView.builder(
                      scrollDirection: Axis.horizontal,
b90a1518   liangchengyou   feat:练习接口逻辑完成
284
                      physics: const NeverScrollableScrollPhysics(),
2eb67dd4   liangchengyou   feat:调整代码
285
286
                      itemCount: topics?.topicAnswerList?.length??0,
                      itemBuilder: (BuildContext context,int index){
b90a1518   liangchengyou   feat:练习接口逻辑完成
287
                        return _decodeVoiceImageWidget(index,topics?.topicAnswerList?[index]);
2eb67dd4   liangchengyou   feat:调整代码
288
289
                      })
                  ,
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
290
291
292
293
294
295
                )
              ],
            ),
          );
        });
  
2eb67dd4   liangchengyou   feat:调整代码
296
    Widget _decodeVoiceImageWidget(int index,CourseProcessTopicsTopicAnswerList? answerList) => BlocBuilder<TopicPictureBloc,TopicPictureState>(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
297
298
299
        buildWhen: (_, s) => s is SelectItemChangeState,
        builder: (context,state){
          final bloc = BlocProvider.of<TopicPictureBloc>(context);
2eb67dd4   liangchengyou   feat:调整代码
300
301
302
303
          return Container(
            padding:  EdgeInsets.symmetric(horizontal: 10.w),
            child: GestureDetector(
              onTap: () => bloc.add(SelectItemEvent(index)),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
304
              child: Container(
2eb67dd4   liangchengyou   feat:调整代码
305
                padding: const EdgeInsets.all(4.5),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
306
                decoration: BoxDecoration(
2eb67dd4   liangchengyou   feat:调整代码
307
308
309
310
311
312
313
314
315
316
317
318
319
                  color: bloc.selectItem == index?const Color(0xFF00B6F1):Colors.white,
                  borderRadius: BorderRadius.circular(15),
                ),
                height: 143.h,
                width: 143.w,
                child: Container(
                  decoration: BoxDecoration(
                      color: Colors.white,
                      borderRadius: BorderRadius.circular(15),
                      border: Border.all(
                          width: 1.0,
                          color: const Color(0xFF140C10)
                      ),
b90a1518   liangchengyou   feat:练习接口逻辑完成
320
                      image: DecorationImage(
2eb67dd4   liangchengyou   feat:调整代码
321
                          fit: BoxFit.fitWidth,
b90a1518   liangchengyou   feat:练习接口逻辑完成
322
                          image: NetworkImage(answerList?.picUrl??'')
2eb67dd4   liangchengyou   feat:调整代码
323
324
                      )
                  ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
325
326
327
328
329
330
331
                ),
              ),
            ),
          );
        });
  
    ///听音选字
2eb67dd4   liangchengyou   feat:调整代码
332
    Widget _pageViewVoiceWordItemWidget(CourseProcessTopics? topics) => BlocBuilder<TopicPictureBloc,TopicPictureState>(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
333
        builder: (context, state){
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
334
335
336
337
338
          return SafeArea(
            child: Column(
              children: [
                Image.asset('voice'.assetPng,height: 33.h,width: 30.w,),
                26.verticalSpace,
2eb67dd4   liangchengyou   feat:调整代码
339
340
341
342
                SizedBox(
                  width: 163.w * (topics?.topicAnswerList?.length??0),
                  height: 143.h,
                  child: ListView.builder(
2eb67dd4   liangchengyou   feat:调整代码
343
                      scrollDirection: Axis.horizontal,
b90a1518   liangchengyou   feat:练习接口逻辑完成
344
345
                      itemCount: topics?.topicAnswerList?.length,
                      physics: const NeverScrollableScrollPhysics(),
2eb67dd4   liangchengyou   feat:调整代码
346
347
348
349
                      itemBuilder: (BuildContext context,int index){
                        return _decodeVoiceWordImageWidget(index, topics!.topicAnswerList![index]);
                      }),
                ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
350
351
352
353
354
              ],
            ),
          );
        });
  
2eb67dd4   liangchengyou   feat:调整代码
355
    Widget _decodeVoiceWordImageWidget(int index,CourseProcessTopicsTopicAnswerList answerList) => BlocBuilder<TopicPictureBloc,TopicPictureState>(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
356
357
358
359
360
361
        buildWhen: (_, s) => s is SelectItemChangeState,
        builder: (context,state){
          final bloc = BlocProvider.of<TopicPictureBloc>(context);
          return GestureDetector(
            onTap: () => bloc.add(SelectItemEvent(index)),
            child: Container(
2eb67dd4   liangchengyou   feat:调整代码
362
              width: 163.w,
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
363
              height: 143.h,
2eb67dd4   liangchengyou   feat:调整代码
364
365
366
367
368
369
370
371
372
373
374
375
              padding: EdgeInsets.symmetric(horizontal: 10.w),
              child: Container(
                width: 143.w,
                height: 143.h,
                padding: EdgeInsets.only(left: 13.w,right: 13.w,top: 13.h,bottom: 13.h),
                decoration: BoxDecoration(
                  color: Colors.white,
                  borderRadius: BorderRadius.circular(15),
                  border: Border.all(
                      width: 1.0,
                      color: const Color(0xFF140C10)
                  ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
376
                ),
2eb67dd4   liangchengyou   feat:调整代码
377
378
379
380
381
382
383
384
385
386
387
388
389
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.end,
                  children: [
                    Expanded(
                      child: Container(
                        alignment: Alignment.center,
                        child: Text(
                            answerList.word??'',
                            style: TextStyle(
                                fontSize: 20.sp,
                                color: const Color(0xFF333333)
                            )
                        ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
390
391
                      ),
                    ),
2eb67dd4   liangchengyou   feat:调整代码
392
393
394
395
396
397
398
399
400
401
                    Container(
                      height: 30.h,
                      width: double.infinity,
                      decoration: BoxDecoration(
                        color: bloc.selectItem == index?const Color(0xFF00B6F1):Colors.white,
                        borderRadius: BorderRadius.circular(15.r),
                        border: Border.all(
                            width: 1.5,
                            color: const Color(0xFF140C10)
                        ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
402
                      ),
2eb67dd4   liangchengyou   feat:调整代码
403
404
405
406
407
                      alignment: Alignment.center,
                      child: Image.asset('choose'.assetPng),
                    )
                  ],
                ),
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
408
409
410
411
412
413
              ),
            ),
          );
        });
  
    ///语音问答
2eb67dd4   liangchengyou   feat:调整代码
414
    Widget _voiceAnswerItem(CourseProcessTopics? topics) => BlocBuilder<TopicPictureBloc,TopicPictureState>(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
415
        builder: (context, state) {
2eb67dd4   liangchengyou   feat:调整代码
416
          final bloc = BlocProvider.of<TopicPictureBloc>(context);
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
417
          return Row(
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
418
419
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
2eb67dd4   liangchengyou   feat:调整代码
420
              OwImageWidget(
b90a1518   liangchengyou   feat:练习接口逻辑完成
421
                name:topics?.picUrl??'',
2eb67dd4   liangchengyou   feat:调整代码
422
423
                height: 186.h,
                width: 186.w,
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
424
              ),
2eb67dd4   liangchengyou   feat:调整代码
425
426
427
428
              160.horizontalSpace,
              Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
b90a1518   liangchengyou   feat:练习接口逻辑完成
429
430
431
432
433
434
435
436
437
438
                  Row(
                    children: [
                      Image.asset(
                        'voice'.assetPng,
                        height: 52.h,
                        width: 46.w,
                      ),
                      10.horizontalSpace,
                      Text(topics?.word??'')
                    ],
2eb67dd4   liangchengyou   feat:调整代码
439
440
441
442
443
444
445
                  ),
                  70.verticalSpace,
                  GestureDetector(
                    onTap: () {
                      if (bloc.isVoicing) {
                        return;
                      }
b90a1518   liangchengyou   feat:练习接口逻辑完成
446
447
448
449
450
                      if (topics?.type == 5) {
                        bloc.add(XSVoiceTestEvent(topics?.keyWord??'', '0',UserUtil.getUser()!.id.toString()));
                      } else {
                        bloc.add(XSVoiceTestEvent(topics?.word??'', '0',UserUtil.getUser()!.id.toString()));
                      }
2eb67dd4   liangchengyou   feat:调整代码
451
452
453
454
455
456
457
458
                    },
                    child: Image.asset(
                      'micro_phone'.assetPng,
                      height: 75.w,
                      width: 75.w,
                    ),
                  )
                ],
842b7132   liangchengyou   feat:磨耳朵/练习页面调整
459
460
              )
            ],
2eb67dd4   liangchengyou   feat:调整代码
461
462
          );
        });
da82bd70   Key   feat: user_inform...
463
  }