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!)
|
? Flag(countryCode: detail.countryCode!)
|
||||||
: const Flag(countryCode: ''),
|
: const Flag(countryCode: ''),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Container(
|
Visibility(
|
||||||
height: 32.0.h(),
|
visible: detail.estimatedValue != null && detail.estimatedValue != 0,
|
||||||
padding: EdgeInsets.symmetric(horizontal: 16.0.w()),
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
height: 32.0.h(),
|
||||||
color: AppColors.grey30,
|
padding: EdgeInsets.symmetric(horizontal: 16.0.w()),
|
||||||
borderRadius: BorderRadius.circular(8),
|
decoration: BoxDecoration(
|
||||||
),
|
color: AppColors.grey30,
|
||||||
alignment: Alignment.center,
|
borderRadius: BorderRadius.circular(8),
|
||||||
child: Text(
|
),
|
||||||
'${detail.estimatedValue?.formattedPrice} ${detail.currency ?? ''}',
|
alignment: Alignment.center,
|
||||||
style: TextStyle(
|
child: Text(
|
||||||
color: AppColors.grey60,
|
'${detail.estimatedValue?.formattedPrice} ${detail.currency ?? ''}',
|
||||||
fontSize: 16.0.sp(),
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.w600,
|
color: AppColors.grey60,
|
||||||
|
fontSize: 16.0.sp(),
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user