49 Widget
build(BuildContext context) {
50 return ElevatedButton(
54 style: ElevatedButton.styleFrom(
56 overlayColor: Theme.of(context).colorScheme.primary,
60 crossAxisAlignment: CrossAxisAlignment.start,
63 crossAxisAlignment: CrossAxisAlignment.start,
64 mainAxisAlignment: MainAxisAlignment.spaceBetween,
68 '${widget.video.name}',
69 style: Theme.of(context).textTheme.bodySmall,
72 SizedBox(width: 10.sp),
74 decoration: BoxDecoration(
75 borderRadius: BorderRadius.circular(80),
76 color: Theme.of(context).primaryColor,
79 EdgeInsets.symmetric(horizontal: 7.sp, vertical: 3.sp),
81 mainAxisSize: MainAxisSize.min,
84 HugeIcons.strokeRoundedTime02,
86 color: Theme.of(context).colorScheme.onPrimary,
88 SizedBox(width: 4.sp),
90 '${widget.video.videoTime}',
91 style: Theme.of(context).textTheme.bodySmall?.copyWith(
92 color: Theme.of(context).colorScheme.onPrimary,
94 fontWeight: FontWeight.bold,
102 SizedBox(height: 10.sp),
106 SizedBox(height: 10.sp),
108 text: widget.video.description ??
'',
111 SizedBox(height: 10.sp),
116 SizedBox(height: 10.sp),
119 width: MediaQuery.of(context).size.width,
120 decoration: BoxDecoration(
121 borderRadius: BorderRadius.circular(5),
122 color: Theme.of(context).colorScheme.surface.withOpacity(0.3),
123 image: DecorationImage(
133 Theme.of(context).colorScheme.onSurface.withOpacity(0.11),
143 HugeIcons.strokeRoundedPlay,
144 color: Theme.of(context).colorScheme.primary,
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })