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