Fixed ui details bug
This commit is contained in:
@@ -83,9 +83,12 @@ class TenderDetailScreen extends StatelessWidget {
|
|||||||
SizedBox(height: 5.0.h()),
|
SizedBox(height: 5.0.h()),
|
||||||
|
|
||||||
infoItem('ID', 'JNDFKMDV-100-JF'),
|
infoItem('ID', 'JNDFKMDV-100-JF'),
|
||||||
infoItem(
|
deadlineItem(
|
||||||
'Deadline',
|
title: 'Deadline',
|
||||||
'For approval: 2025-05-21\nFor submission: 2025-05-21',
|
approvalText: 'For approval',
|
||||||
|
approvalDate: '2025-05-21',
|
||||||
|
submissionText: 'For submission',
|
||||||
|
submissionDate: '2025-05-21',
|
||||||
),
|
),
|
||||||
infoItem('Client', 'Procurement Notice Procurement Notice'),
|
infoItem('Client', 'Procurement Notice Procurement Notice'),
|
||||||
infoItem('Delivery Locations', 'Norrbotten County'),
|
infoItem('Delivery Locations', 'Norrbotten County'),
|
||||||
@@ -207,6 +210,79 @@ class TenderDetailScreen extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget deadlineItem({
|
||||||
|
required String title,
|
||||||
|
required String approvalText,
|
||||||
|
required String approvalDate,
|
||||||
|
required String submissionText,
|
||||||
|
required String submissionDate,
|
||||||
|
}) {
|
||||||
|
return Padding(
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 0),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
SizedBox(
|
||||||
|
height: 45.0.h(),
|
||||||
|
child: Text(
|
||||||
|
title,
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.grey80,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 16.0.sp(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
approvalText,
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.grey70,
|
||||||
|
fontWeight: FontWeight.w400,
|
||||||
|
fontSize: 14.0.sp(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
approvalDate,
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.grey70,
|
||||||
|
fontWeight: FontWeight.w400,
|
||||||
|
fontSize: 14.0.sp(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
SizedBox(height: 4.0.h()),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
submissionText,
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.grey70,
|
||||||
|
fontWeight: FontWeight.w400,
|
||||||
|
fontSize: 14.0.sp(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
submissionDate,
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.grey70,
|
||||||
|
fontWeight: FontWeight.w400,
|
||||||
|
fontSize: 14.0.sp(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
SizedBox(height: 8.0.h()),
|
||||||
|
Divider(),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
Widget infoItem(String title, String value) {
|
Widget infoItem(String title, String value) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 0),
|
padding: const EdgeInsets.symmetric(vertical: 0),
|
||||||
|
|||||||
Reference in New Issue
Block a user