|
|
|
@ -25,116 +25,113 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
borderRadius: BorderRadius.circular(15),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * .20,
|
|
|
|
|
width: 5,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: Radius.circular(10),
|
|
|
|
|
bottomLeft: Radius.circular(10),
|
|
|
|
|
),
|
|
|
|
|
color: entityList.orderType == 1
|
|
|
|
|
? Colors.red[500]
|
|
|
|
|
: Colors.black,
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * .20,
|
|
|
|
|
width: 5,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: Radius.circular(10),
|
|
|
|
|
bottomLeft: Radius.circular(10),
|
|
|
|
|
),
|
|
|
|
|
color: entityList.orderType == 1
|
|
|
|
|
? Colors.red[500]
|
|
|
|
|
: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
left: projectViewModel.isArabic ? 0 : 15,
|
|
|
|
|
right: projectViewModel.isArabic ? 15 : 0),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
entityList.orderType == 0
|
|
|
|
|
? 'Routine'
|
|
|
|
|
: 'Urgent',
|
|
|
|
|
color: entityList.orderType == 0
|
|
|
|
|
? Colors.black
|
|
|
|
|
: Colors.red[800],
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
entityList.procedureName,
|
|
|
|
|
bold: true,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 5,
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
left: projectViewModel.isArabic ? 0 : 15,
|
|
|
|
|
right: projectViewModel.isArabic ? 15 : 0),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
'${DateUtils.getDayMonthYearDateFormatted(DateUtils.convertISOStringToDateTime(entityList.orderDate), isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
entityList.orderType == 0
|
|
|
|
|
? 'Routine'
|
|
|
|
|
: 'Urgent',
|
|
|
|
|
color: entityList.orderType == 0
|
|
|
|
|
? Colors.black
|
|
|
|
|
: Colors.red[800],
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
'${DateUtils.getHour(DateUtils.convertISOStringToDateTime(entityList.orderDate))}',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Colors.grey[700],
|
|
|
|
|
entityList.procedureName,
|
|
|
|
|
bold: true,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).orderNo,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
entityList.orderNo.toString(),
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
entityList.remarks ?? '',
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
Icon(Icons.edit)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
onTap: onTap,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 5,
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
'${DateUtils.getDayMonthYearDateFormatted(DateUtils.convertISOStringToDateTime(entityList.orderDate), isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
'${DateUtils.getHour(DateUtils.convertISOStringToDateTime(entityList.orderDate))}',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Colors.grey[700],
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).orderNo,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
entityList.orderNo.toString(),
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
entityList.remarks ?? '',
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
Icon(Icons.edit)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
onTap: onTap,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|