8988aa69
liangchengyou
feat:首页+课程列表数据获取
|
1
2
3
|
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:wow_english/common/extension/string_extension.dart';
|
6f617434
liangchengyou
feat:磨耳朵/视频跟读列表页接口调整
|
4
|
import 'package:wow_english/common/widgets/ow_image_widget.dart';
|
68dd7ba8
liangchengyou
feat:首页主题颜色+已知问题修改
|
5
|
|
2187c85f
吴启风
feat:课程结构调整
|
6
7
|
import '../../../models/course_section_entity.dart';
import '../../../models/course_unit_entity.dart';
|
68dd7ba8
liangchengyou
feat:首页主题颜色+已知问题修改
|
8
|
import '../courese_module_model.dart';
|
8988aa69
liangchengyou
feat:首页+课程列表数据获取
|
9
|
|
2187c85f
吴启风
feat:课程结构调整
|
10
11
|
class SectionVideoItem extends StatelessWidget {
const SectionVideoItem({super.key, this.lessons, this.unitEntity});
|
8988aa69
liangchengyou
feat:首页+课程列表数据获取
|
12
|
|
2187c85f
吴启风
feat:课程结构调整
|
13
14
|
final CourseUnitEntity? unitEntity;
final CourseSectionEntity? lessons;
|
8988aa69
liangchengyou
feat:首页+课程列表数据获取
|
15
16
17
|
@override
Widget build(BuildContext context) {
|
ad8454ca
liangchengyou
feat:调整模型
|
18
|
return Padding(
|
1e7094e3
liangchengyou
feat:适配ipad
|
19
|
padding: EdgeInsets.symmetric(horizontal: 12.w,vertical: 24.h),
|
ad8454ca
liangchengyou
feat:调整模型
|
20
21
22
23
|
child: Container(
width: 165.w,
padding: EdgeInsets.symmetric(horizontal: 16.w,vertical: 24.h),
decoration: BoxDecoration(
|
6f617434
liangchengyou
feat:磨耳朵/视频跟读列表页接口调整
|
24
|
image: DecorationImage(
|
68dd7ba8
liangchengyou
feat:首页主题颜色+已知问题修改
|
25
26
|
image: AssetImage('gendubeij'.assetPng),
fit: BoxFit.fill
|
6f617434
liangchengyou
feat:磨耳朵/视频跟读列表页接口调整
|
27
|
),
|
ad8454ca
liangchengyou
feat:调整模型
|
28
29
|
),
child: Column(
|
1e7094e3
liangchengyou
feat:适配ipad
|
30
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
ad8454ca
liangchengyou
feat:调整模型
|
31
32
33
34
|
children: [
Expanded(
child: Container(
decoration: BoxDecoration(
|
6f617434
liangchengyou
feat:磨耳朵/视频跟读列表页接口调整
|
35
36
37
38
39
|
border: Border.all(
width: 2,
color: const Color(0xFF140C10),
),
borderRadius: BorderRadius.circular(6)
|
ad8454ca
liangchengyou
feat:调整模型
|
40
|
),
|
6f617434
liangchengyou
feat:磨耳朵/视频跟读列表页接口调整
|
41
42
|
child: OwImageWidget(
name: lessons?.coverUrl??'',
|
1e7094e3
liangchengyou
feat:适配ipad
|
43
|
fit: BoxFit.fitHeight,
|
ad8454ca
liangchengyou
feat:调整模型
|
44
|
),
|
68dd7ba8
liangchengyou
feat:首页主题颜色+已知问题修改
|
45
46
|
)
),
|
ad8454ca
liangchengyou
feat:调整模型
|
47
48
49
50
51
52
53
|
24.verticalSpace,
Container(
decoration: BoxDecoration(
border: Border.all(
width: 2,
color: const Color(0xFF140C10),
),
|
2187c85f
吴启风
feat:课程结构调整
|
54
|
color: CourseModuleModel(unitEntity?.courseModuleCode??'Phase-1').color,
|
ad8454ca
liangchengyou
feat:调整模型
|
55
56
57
58
59
|
borderRadius: BorderRadius.circular(6)
),
padding: EdgeInsets.symmetric(horizontal: 10.w),
child: Text(
lessons?.name??'',
|
2e5751ab
liangchengyou
feat:更新版本号1.0.2
|
60
|
maxLines: 1,
|
ad8454ca
liangchengyou
feat:调整模型
|
61
62
63
|
style: TextStyle(
fontSize: 25.sp,
color: const Color(0xFF333333)
|
8988aa69
liangchengyou
feat:首页+课程列表数据获取
|
64
|
),
|
8988aa69
liangchengyou
feat:首页+课程列表数据获取
|
65
|
),
|
ad8454ca
liangchengyou
feat:调整模型
|
66
67
68
|
)
],
),
|
8988aa69
liangchengyou
feat:首页+课程列表数据获取
|
69
70
71
72
|
),
);
}
}
|