onufitness_mobile/lib/screens/u_vault/widgets/failed_video_card.dart
2026-01-13 11:36:24 +05:30

76 lines
2.2 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:onufitness/constants/color_constant.dart';
class FailedVideoCard extends StatelessWidget {
final String title;
final String category;
const FailedVideoCard({
super.key,
required this.title,
required this.category,
});
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(12.r),
boxShadow: [
BoxShadow(color: Colors.black12, blurRadius: 4, spreadRadius: 2),
],
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ClipRRect(
borderRadius: BorderRadius.vertical(top: Radius.circular(12.r)),
child: Container(
height: 180.h,
decoration: BoxDecoration(
color: greyTextColor1.withValues(alpha: 0.5),
borderRadius: BorderRadius.circular(12.r),
),
child: const Center(
child: Icon(Icons.broken_image, size: 40, color: Colors.grey),
),
),
),
Padding(
padding: EdgeInsets.all(8.0.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
category,
style: TextStyle(fontSize: 14.sp, color: greyTextColor1),
),
SizedBox(height: 4.h),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Text(
title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 15.sp,
color: Colors.black,
fontWeight: FontWeight.w600,
),
),
),
],
),
],
),
),
],
),
);
}
}