home_vidoe_item.dart
1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:wow_english/common/extension/string_extension.dart';
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) {
return Container(
height: 202.h,
width: 165.w,
padding: EdgeInsets.symmetric(horizontal: 16.w,vertical: 12.h),
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(''.assetPng)
)
),
child: Column(
children: [
Container(
decoration: BoxDecoration(
border: Border.all(
width: 2,
color: const Color(0xFF140C10),
),
borderRadius: BorderRadius.circular(6)
),
child: Image.network(lessons?.coverUrl??''),
),
Container(
decoration: BoxDecoration(
border: Border.all(
width: 2,
color: const Color(0xFF140C10),
),
borderRadius: BorderRadius.circular(6)
),
padding: EdgeInsets.symmetric(horizontal: 10.w,vertical: 8.h),
child: Text(
lessons?.name??'',
style: TextStyle(
fontSize: 25.sp,
color: const Color(0xFF333333)
),
),
)
],
),
);
}
}