|
|
|
@ -24,23 +24,18 @@ class OrdersLogDetailsPage extends StatelessWidget {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
|
|
|
|
|
|
|
void showConfirmMessage(
|
|
|
|
void showConfirmMessage(HomeHealthCareViewModel model, GetHHCAllPresOrdersResponseModel order) {
|
|
|
|
HomeHealthCareViewModel model, GetHHCAllPresOrdersResponseModel order) {
|
|
|
|
|
|
|
|
showDialog(
|
|
|
|
showDialog(
|
|
|
|
context: context,
|
|
|
|
context: context,
|
|
|
|
child: ConfirmCancelOrderDialog(
|
|
|
|
child: ConfirmCancelOrderDialog(
|
|
|
|
model: model,
|
|
|
|
model: model,
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
|
UpdatePresOrderRequestModel updatePresOrderRequestModel =
|
|
|
|
UpdatePresOrderRequestModel updatePresOrderRequestModel = UpdatePresOrderRequestModel(presOrderID: order.iD, rejectionReason: "", presOrderStatus: 4, editedBy: 3);
|
|
|
|
UpdatePresOrderRequestModel(
|
|
|
|
|
|
|
|
presOrderID: order.iD,
|
|
|
|
|
|
|
|
rejectionReason: "",
|
|
|
|
|
|
|
|
presOrderStatus: 4, editedBy: 3);
|
|
|
|
|
|
|
|
await model.updateHHCPresOrder(updatePresOrderRequestModel);
|
|
|
|
await model.updateHHCPresOrder(updatePresOrderRequestModel);
|
|
|
|
if(model.state == ViewState.ErrorLocal) {
|
|
|
|
if (model.state == ViewState.ErrorLocal) {
|
|
|
|
Utils.showErrorToast(model.error);
|
|
|
|
Utils.showErrorToast(model.error);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
AppToast.showSuccessToast(message:TranslationBase.of(context).processDoneSuccessfully );
|
|
|
|
AppToast.showSuccessToast(message: TranslationBase.of(context).processDoneSuccessfully);
|
|
|
|
await model.getHHCAllPresOrders();
|
|
|
|
await model.getHHCAllPresOrders();
|
|
|
|
// await model.getHHCAllServices();
|
|
|
|
// await model.getHHCAllServices();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -54,154 +49,98 @@ class OrdersLogDetailsPage extends StatelessWidget {
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.all(12),
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
widthFactor: 0.94,
|
|
|
|
widthFactor: 0.94,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 50,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: model.hhcAllPresOrders.map((order) {
|
|
|
|
children: model.hhcAllPresOrders.map((order) {
|
|
|
|
return Container(
|
|
|
|
return Row(
|
|
|
|
width: double.infinity,
|
|
|
|
children: [
|
|
|
|
margin: EdgeInsets.only(top: 15),
|
|
|
|
Expanded(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
flex: 3,
|
|
|
|
border:
|
|
|
|
child: ClipRRect(
|
|
|
|
Border.all(color: Colors.grey, width: 1),
|
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(20.0)),
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
child: Container(
|
|
|
|
color: Colors.white),
|
|
|
|
padding: EdgeInsets.only(left: 10, right: 10, top: 10, bottom: 10),
|
|
|
|
|
|
|
|
margin: EdgeInsets.only(left: 10, right: 10, top: 7, bottom: 7),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(boxShadow: [
|
|
|
|
|
|
|
|
BoxShadow(
|
|
|
|
|
|
|
|
color: order.status == 4
|
|
|
|
|
|
|
|
? Colors.red[900]
|
|
|
|
|
|
|
|
: order.status == 3
|
|
|
|
|
|
|
|
? Colors.green[400]
|
|
|
|
|
|
|
|
: Color(0xffcd9e1b),
|
|
|
|
|
|
|
|
offset: Offset(-10, 0)),
|
|
|
|
|
|
|
|
], borderRadius: const BorderRadius.all(Radius.circular(10.0)), color: Colors.white),
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
SizedBox(
|
|
|
|
Row(
|
|
|
|
height: 12,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
|
|
|
left: 15, bottom: 15, top: 15, right: 15),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
border: Border(
|
|
|
|
|
|
|
|
bottom: BorderSide(
|
|
|
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
|
|
|
width: 1.0,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
// borderRadius: BorderRadius.circular(12),
|
|
|
|
|
|
|
|
color: Colors.white),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase
|
|
|
|
TranslationBase.of(context).OrderStatus + ' ' + (projectViewModel.isArabic ? order.descriptionN : order.description),
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.requestID,
|
|
|
|
|
|
|
|
bold: false,
|
|
|
|
bold: false,
|
|
|
|
fontSize: 13,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
color: order.status == 4
|
|
|
|
SizedBox(
|
|
|
|
? Colors.red[900]
|
|
|
|
height: 4,
|
|
|
|
: order.status == 3
|
|
|
|
),
|
|
|
|
? Colors.green[400]
|
|
|
|
Texts(
|
|
|
|
: Color(0xffcd9e1b),
|
|
|
|
order.iD.toString(),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: 22,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
Container(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
|
|
|
left: 15, bottom: 15, top: 15, right: 15),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
border: Border(
|
|
|
|
|
|
|
|
bottom: BorderSide(
|
|
|
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
|
|
|
width: 1.0,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
// borderRadius: BorderRadius.circular(12),
|
|
|
|
|
|
|
|
color: Colors.white),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase
|
|
|
|
DateUtil.getDayMonthYearDateFormatted(DateUtil.convertStringToDate(order.createdOn)),
|
|
|
|
.of(context)
|
|
|
|
fontSize: 14,
|
|
|
|
.OrderStatus,
|
|
|
|
)
|
|
|
|
bold: false,
|
|
|
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 4,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
projectViewModel.isArabic ? order.descriptionN : order.description,
|
|
|
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
Container(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
children: [
|
|
|
|
left: 15, bottom: 15, top: 15, right: 15),
|
|
|
|
Column(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
border: Border(
|
|
|
|
|
|
|
|
bottom: BorderSide(
|
|
|
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
|
|
|
width: 1.0,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
// borderRadius: BorderRadius.circular(12),
|
|
|
|
|
|
|
|
color: Colors.white),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase
|
|
|
|
TranslationBase.of(context).requestID + ' ' + order.iD.toString(),
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.pickupDate,
|
|
|
|
|
|
|
|
bold: false,
|
|
|
|
bold: false,
|
|
|
|
fontSize: 13,
|
|
|
|
fontSize: 18,
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 4,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
DateUtil.getDayMonthYearDateFormatted(
|
|
|
|
|
|
|
|
DateUtil.convertStringToDate(order.createdOn)),
|
|
|
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
(order.status == 1 || order.status == 2)
|
|
|
|
|
|
|
|
? SecondaryButton(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
showConfirmMessage(model, order);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
label: TranslationBase.of(context).cancel,
|
|
|
|
|
|
|
|
color: Colors.red[900],
|
|
|
|
|
|
|
|
small: true,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
: SizedBox()
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
// )
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// )
|
|
|
|
|
|
|
|
// ],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Column(
|
|
|
|
SizedBox(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
height: 12,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
|
|
|
left: 15, bottom: 15, top: 15, right: 15),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
border: Border(
|
|
|
|
|
|
|
|
bottom: BorderSide(
|
|
|
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
|
|
|
width: 1.0,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
// borderRadius: BorderRadius.circular(12),
|
|
|
|
|
|
|
|
color: Colors.white),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context).orderLocation,
|
|
|
|
TranslationBase.of(context).orderLocation,
|
|
|
|
@ -212,45 +151,203 @@ class OrdersLogDetailsPage extends StatelessWidget {
|
|
|
|
height: 4,
|
|
|
|
height: 4,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
!projectViewModel.isArabic ?order.nearestProjectDescription
|
|
|
|
!projectViewModel.isArabic ? order.nearestProjectDescription.toString() : order.nearestProjectDescriptionN.toString(),
|
|
|
|
.toString() :
|
|
|
|
fontSize: 13,
|
|
|
|
order.nearestProjectDescriptionN
|
|
|
|
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 12,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
if (order.status == 1 ||order.status == 2 )
|
|
|
|
|
|
|
|
Center(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
width: MediaQuery
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.width *
|
|
|
|
|
|
|
|
0.85,
|
|
|
|
|
|
|
|
child: SecondaryButton(
|
|
|
|
|
|
|
|
label: "Cancel".toUpperCase(),
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
showConfirmMessage(model, order);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
color: Colors.red[800],
|
|
|
|
|
|
|
|
disabled: false,
|
|
|
|
|
|
|
|
textColor: Theme
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.backgroundColor),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 12,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
))
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
))),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// return Container(
|
|
|
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
|
|
|
// margin: EdgeInsets.only(top: 15),
|
|
|
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
|
|
|
// border:
|
|
|
|
|
|
|
|
// Border.all(color: Colors.grey, width: 1),
|
|
|
|
|
|
|
|
// borderRadius: BorderRadius.circular(12),
|
|
|
|
|
|
|
|
// color: Colors.white),
|
|
|
|
|
|
|
|
// child: Column(
|
|
|
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 12,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
|
|
|
|
// left: 15, bottom: 15, top: 15, right: 15),
|
|
|
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
|
|
|
// border: Border(
|
|
|
|
|
|
|
|
// bottom: BorderSide(
|
|
|
|
|
|
|
|
// color: Colors.grey,
|
|
|
|
|
|
|
|
// width: 1.0,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// // borderRadius: BorderRadius.circular(12),
|
|
|
|
|
|
|
|
// color: Colors.white),
|
|
|
|
|
|
|
|
// child: Column(
|
|
|
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
// Texts(
|
|
|
|
|
|
|
|
// TranslationBase
|
|
|
|
|
|
|
|
// .of(context)
|
|
|
|
|
|
|
|
// .requestID,
|
|
|
|
|
|
|
|
// bold: false,
|
|
|
|
|
|
|
|
// fontSize: 13,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 4,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Texts(
|
|
|
|
|
|
|
|
// order.iD.toString(),
|
|
|
|
|
|
|
|
// fontSize: 22,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
|
|
|
|
// left: 15, bottom: 15, top: 15, right: 15),
|
|
|
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
|
|
|
// border: Border(
|
|
|
|
|
|
|
|
// bottom: BorderSide(
|
|
|
|
|
|
|
|
// color: Colors.grey,
|
|
|
|
|
|
|
|
// width: 1.0,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// // borderRadius: BorderRadius.circular(12),
|
|
|
|
|
|
|
|
// color: Colors.white),
|
|
|
|
|
|
|
|
// child: Column(
|
|
|
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
// Texts(
|
|
|
|
|
|
|
|
// TranslationBase
|
|
|
|
|
|
|
|
// .of(context)
|
|
|
|
|
|
|
|
// .OrderStatus,
|
|
|
|
|
|
|
|
// bold: false,
|
|
|
|
|
|
|
|
// fontSize: 13,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 4,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Texts(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// projectViewModel.isArabic ? order.descriptionN : order.description,
|
|
|
|
|
|
|
|
// fontSize: 22,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
|
|
|
|
// left: 15, bottom: 15, top: 15, right: 15),
|
|
|
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
|
|
|
// border: Border(
|
|
|
|
|
|
|
|
// bottom: BorderSide(
|
|
|
|
|
|
|
|
// color: Colors.grey,
|
|
|
|
|
|
|
|
// width: 1.0,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// // borderRadius: BorderRadius.circular(12),
|
|
|
|
|
|
|
|
// color: Colors.white),
|
|
|
|
|
|
|
|
// child: Column(
|
|
|
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
// Texts(
|
|
|
|
|
|
|
|
// TranslationBase
|
|
|
|
|
|
|
|
// .of(context)
|
|
|
|
|
|
|
|
// .pickupDate,
|
|
|
|
|
|
|
|
// bold: false,
|
|
|
|
|
|
|
|
// fontSize: 13,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 4,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Texts(
|
|
|
|
|
|
|
|
// DateUtil.getDayMonthYearDateFormatted(
|
|
|
|
|
|
|
|
// DateUtil.convertStringToDate(order.createdOn)),
|
|
|
|
|
|
|
|
// fontSize: 22,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 12,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
|
|
|
|
// left: 15, bottom: 15, top: 15, right: 15),
|
|
|
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
|
|
|
// border: Border(
|
|
|
|
|
|
|
|
// bottom: BorderSide(
|
|
|
|
|
|
|
|
// color: Colors.grey,
|
|
|
|
|
|
|
|
// width: 1.0,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// // borderRadius: BorderRadius.circular(12),
|
|
|
|
|
|
|
|
// color: Colors.white),
|
|
|
|
|
|
|
|
// child: Column(
|
|
|
|
|
|
|
|
// crossAxisAlignment:
|
|
|
|
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
// Texts(
|
|
|
|
|
|
|
|
// TranslationBase.of(context).orderLocation,
|
|
|
|
|
|
|
|
// bold: false,
|
|
|
|
|
|
|
|
// fontSize: 13,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 4,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Texts(
|
|
|
|
|
|
|
|
// !projectViewModel.isArabic ?order.nearestProjectDescription
|
|
|
|
|
|
|
|
// .toString() :
|
|
|
|
|
|
|
|
// order.nearestProjectDescriptionN
|
|
|
|
|
|
|
|
// .toString(),
|
|
|
|
|
|
|
|
// fontSize: 22,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 12,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// if (order.status == 1 ||order.status == 2 )
|
|
|
|
|
|
|
|
// Center(
|
|
|
|
|
|
|
|
// child: Container(
|
|
|
|
|
|
|
|
// width: MediaQuery
|
|
|
|
|
|
|
|
// .of(context)
|
|
|
|
|
|
|
|
// .size
|
|
|
|
|
|
|
|
// .width *
|
|
|
|
|
|
|
|
// 0.85,
|
|
|
|
|
|
|
|
// child: SecondaryButton(
|
|
|
|
|
|
|
|
// label: "Cancel".toUpperCase(),
|
|
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
|
|
// showConfirmMessage(model, order);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// ,
|
|
|
|
|
|
|
|
// color: Colors.red[800],
|
|
|
|
|
|
|
|
// disabled: false,
|
|
|
|
|
|
|
|
// textColor: Theme
|
|
|
|
|
|
|
|
// .of(context)
|
|
|
|
|
|
|
|
// .backgroundColor),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 12,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// );
|
|
|
|
}).toList())
|
|
|
|
}).toList())
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|