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