Modified TenderDetailHeader to conditionally display the estimated value container based on its presence
This commit is contained in:
@@ -199,20 +199,23 @@ class TenderDetailHeader extends StatelessWidget {
|
||||
? Flag(countryCode: detail.countryCode!)
|
||||
: const Flag(countryCode: ''),
|
||||
const Spacer(),
|
||||
Container(
|
||||
height: 32.0.h(),
|
||||
padding: EdgeInsets.symmetric(horizontal: 16.0.w()),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.grey30,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
'${detail.estimatedValue?.formattedPrice} ${detail.currency ?? ''}',
|
||||
style: TextStyle(
|
||||
color: AppColors.grey60,
|
||||
fontSize: 16.0.sp(),
|
||||
fontWeight: FontWeight.w600,
|
||||
Visibility(
|
||||
visible: detail.estimatedValue != null && detail.estimatedValue != 0,
|
||||
child: Container(
|
||||
height: 32.0.h(),
|
||||
padding: EdgeInsets.symmetric(horizontal: 16.0.w()),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.grey30,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
'${detail.estimatedValue?.formattedPrice} ${detail.currency ?? ''}',
|
||||
style: TextStyle(
|
||||
color: AppColors.grey60,
|
||||
fontSize: 16.0.sp(),
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user