fixed TendersCard height size for desktop

This commit is contained in:
llsajjad
2025-09-06 10:35:58 +03:30
parent 0d9f0251d8
commit ef34952988
7 changed files with 28 additions and 5 deletions
@@ -21,6 +21,7 @@ class TenderCard extends StatelessWidget {
final Color? statusCardColor;
final Color? statusTextColor;
final String countryCode;
final bool isDesktop;
const TenderCard({
required this.date,
@@ -28,6 +29,7 @@ class TenderCard extends StatelessWidget {
required this.description,
required this.location,
required this.countryCode,
required this.isDesktop,
this.countryFlag = 'assets/icons/SE.png',
this.status = 'Completed',
this.projectStatus = 'Self Control',
@@ -42,7 +44,7 @@ class TenderCard extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
height: 260.0.h(),
height: isDesktop ? 182.0.h() : 240.0.h(),
width: double.infinity,
margin: EdgeInsets.only(
left: 24.0.w(),
@@ -113,6 +115,8 @@ class TenderCard extends StatelessWidget {
// Title
Text(
title,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: AppColors.grey80,
fontSize: 16.0.sp(),
@@ -125,13 +129,13 @@ class TenderCard extends StatelessWidget {
// Description
Text(
description,
maxLines: isDesktop ? 2 : 3,
style: TextStyle(
color: AppColors.grey70,
fontSize: 14.0.sp(),
fontWeight: FontWeight.w400,
height: 1.4,
),
maxLines: 3,
overflow: TextOverflow.ellipsis,
),
Spacer(),