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