|
|
|
|
@ -11,12 +11,12 @@ import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/button.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:geolocator/geolocator.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
|
|
|
|
import '../StepsWidget.dart';
|
|
|
|
|
import 'new_Home_health_care_step_one_page.dart';
|
|
|
|
|
|
|
|
|
|
@ -28,15 +28,13 @@ class NewHomeHealthCarePage extends StatefulWidget {
|
|
|
|
|
_NewHomeHealthCarePageState createState() => _NewHomeHealthCarePageState();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _NewHomeHealthCarePageState extends State<NewHomeHealthCarePage>
|
|
|
|
|
with TickerProviderStateMixin {
|
|
|
|
|
class _NewHomeHealthCarePageState extends State<NewHomeHealthCarePage> with TickerProviderStateMixin {
|
|
|
|
|
PageController _controller;
|
|
|
|
|
int _currentIndex = 1;
|
|
|
|
|
double _latitude;
|
|
|
|
|
double _longitude;
|
|
|
|
|
|
|
|
|
|
PatientERInsertPresOrderRequestModel patientERInsertPresOrderRequestModel =
|
|
|
|
|
new PatientERInsertPresOrderRequestModel();
|
|
|
|
|
PatientERInsertPresOrderRequestModel patientERInsertPresOrderRequestModel = new PatientERInsertPresOrderRequestModel();
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
|
@ -64,32 +62,23 @@ class _NewHomeHealthCarePageState extends State<NewHomeHealthCarePage>
|
|
|
|
|
setState(() {
|
|
|
|
|
_currentIndex = tab;
|
|
|
|
|
});
|
|
|
|
|
_controller.animateToPage(tab,
|
|
|
|
|
duration: Duration(milliseconds: 800), curve: Curves.easeOutQuart);
|
|
|
|
|
_controller.animateToPage(tab, duration: Duration(milliseconds: 800), curve: Curves.easeOutQuart);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
void showConfirmMessage(HomeHealthCareViewModel model,
|
|
|
|
|
GetOrderDetailByOrderIDResponseModel order) {
|
|
|
|
|
void showConfirmMessage(HomeHealthCareViewModel model, GetOrderDetailByOrderIDResponseModel order) {
|
|
|
|
|
showDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
child: ConfirmCancelOrderDialog(
|
|
|
|
|
model: model,
|
|
|
|
|
onTap: () async {
|
|
|
|
|
UpdatePresOrderRequestModel updatePresOrderRequestModel =
|
|
|
|
|
UpdatePresOrderRequestModel(
|
|
|
|
|
presOrderID: order.presOrderID,
|
|
|
|
|
rejectionReason: "",
|
|
|
|
|
presOrderStatus: 4,
|
|
|
|
|
editedBy: 3);
|
|
|
|
|
UpdatePresOrderRequestModel updatePresOrderRequestModel = UpdatePresOrderRequestModel(presOrderID: order.presOrderID, rejectionReason: "", presOrderStatus: 4, editedBy: 3);
|
|
|
|
|
await model.updateHHCPresOrder(updatePresOrderRequestModel);
|
|
|
|
|
if (model.state == ViewState.ErrorLocal) {
|
|
|
|
|
Utils.showErrorToast(model.error);
|
|
|
|
|
} else {
|
|
|
|
|
AppToast.showSuccessToast(
|
|
|
|
|
message:
|
|
|
|
|
TranslationBase.of(context).processDoneSuccessfully);
|
|
|
|
|
AppToast.showSuccessToast(message: TranslationBase.of(context).processDoneSuccessfully);
|
|
|
|
|
await model.getHHCAllPresOrders();
|
|
|
|
|
// await model.getHHCAllServices();
|
|
|
|
|
}
|
|
|
|
|
@ -106,15 +95,15 @@ class _NewHomeHealthCarePageState extends State<NewHomeHealthCarePage>
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.8,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
right: MediaQuery.of(context).size.width * 0.05),
|
|
|
|
|
child: StepsWidget(
|
|
|
|
|
index: _currentIndex,
|
|
|
|
|
changeCurrentTab: _changeCurrentTab,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// Container(
|
|
|
|
|
// margin: EdgeInsets.only(
|
|
|
|
|
// left: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
// right: MediaQuery.of(context).size.width * 0.05),
|
|
|
|
|
// child: StepsWidget(
|
|
|
|
|
// index: _currentIndex,
|
|
|
|
|
// changeCurrentTab: _changeCurrentTab,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: PageView(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
@ -130,248 +119,284 @@ class _NewHomeHealthCarePageState extends State<NewHomeHealthCarePage>
|
|
|
|
|
? FractionallySizedBox(
|
|
|
|
|
widthFactor: 0.9,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
margin: EdgeInsets.only(top: 15),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: Colors.grey, width: 1),
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
color: Theme.of(context).primaryColor),
|
|
|
|
|
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:
|
|
|
|
|
Theme.of(context).primaryColor),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.requestID,
|
|
|
|
|
bold: false,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
widget.model.pendingOrder.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:
|
|
|
|
|
Theme.of(context).primaryColor),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.OrderStatus,
|
|
|
|
|
bold: false,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? widget.model.pendingOrder
|
|
|
|
|
.descriptionN
|
|
|
|
|
: widget.model.pendingOrder
|
|
|
|
|
.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:
|
|
|
|
|
Theme.of(context).primaryColor),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.pickupDate,
|
|
|
|
|
bold: false,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
DateUtil
|
|
|
|
|
.getDayMonthYearDateFormatted(
|
|
|
|
|
DateUtil
|
|
|
|
|
.convertStringToDate(
|
|
|
|
|
widget
|
|
|
|
|
.model
|
|
|
|
|
.pendingOrder
|
|
|
|
|
.createdOn)),
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
...List.generate(
|
|
|
|
|
widget.model.hhcAllOrderDetail.length,
|
|
|
|
|
(index) => 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: Theme.of(context)
|
|
|
|
|
.primaryColor),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.serviceName,
|
|
|
|
|
bold: false,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? widget
|
|
|
|
|
.model
|
|
|
|
|
.hhcAllOrderDetail[
|
|
|
|
|
index]
|
|
|
|
|
.descriptionN
|
|
|
|
|
: widget
|
|
|
|
|
.model
|
|
|
|
|
.hhcAllOrderDetail[
|
|
|
|
|
index]
|
|
|
|
|
.description,
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
bold: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12,
|
|
|
|
|
),
|
|
|
|
|
Center(
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 3,
|
|
|
|
|
child: ClipRRect(
|
|
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(20.0)),
|
|
|
|
|
child: Container(
|
|
|
|
|
width: MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width *
|
|
|
|
|
0.85,
|
|
|
|
|
child: SecondaryButton(
|
|
|
|
|
label: TranslationBase.of(context)
|
|
|
|
|
.cancel
|
|
|
|
|
.toUpperCase(),
|
|
|
|
|
onTap: () {
|
|
|
|
|
showConfirmMessage(
|
|
|
|
|
widget.model,
|
|
|
|
|
widget.model
|
|
|
|
|
.hhcAllOrderDetail[0]);
|
|
|
|
|
},
|
|
|
|
|
color: Colors.red[800],
|
|
|
|
|
disabled: false,
|
|
|
|
|
textColor: Theme.of(context)
|
|
|
|
|
.backgroundColor),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
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: Color(0xffcd9e1b), offset: Offset(-10, 0)),
|
|
|
|
|
], borderRadius: const BorderRadius.all(Radius.circular(10.0)), color: Colors.white),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).OrderStatus +
|
|
|
|
|
' ' +
|
|
|
|
|
(projectViewModel.isArabic ? widget.model.pendingOrder.descriptionN : widget.model.pendingOrder.description),
|
|
|
|
|
bold: false,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
color: Color(0xffcd9e1b),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
DateUtil.getDayMonthYearDateFormatted(DateUtil.convertStringToDate(widget.model.pendingOrder.createdOn)),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).requestID + ' ' + widget.model.pendingOrder.iD.toString(),
|
|
|
|
|
bold: false,
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).serviceName,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
...List.generate(
|
|
|
|
|
widget.model.hhcAllOrderDetail.length,
|
|
|
|
|
(index) => Container(
|
|
|
|
|
child: Texts(
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? widget.model.hhcAllOrderDetail[index].descriptionN
|
|
|
|
|
: widget.model.hhcAllOrderDetail[index].description.capitalize(),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SecondaryButton(
|
|
|
|
|
onTap: () {
|
|
|
|
|
showConfirmMessage(widget.model, widget.model.hhcAllOrderDetail[0]);
|
|
|
|
|
},
|
|
|
|
|
label: TranslationBase.of(context).cancel,
|
|
|
|
|
color: Colors.red[900],
|
|
|
|
|
small: true,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
))),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// Expanded(
|
|
|
|
|
// flex: 1,
|
|
|
|
|
// child: ClipRRect(
|
|
|
|
|
// borderRadius: const BorderRadius.all(Radius.circular(20.0)),
|
|
|
|
|
// child: Container(
|
|
|
|
|
// padding: EdgeInsets.only(left: 10, right: 10, top: 20, bottom: 20),
|
|
|
|
|
// margin: EdgeInsets.only(left: 20, right: 20, top: 7, bottom: 7),
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// boxShadow: [
|
|
|
|
|
// BoxShadow(color: Colors.green, offset: Offset(-5, 0)),
|
|
|
|
|
// ],
|
|
|
|
|
// )))),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// flex: 5,
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Container(
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// padding: EdgeInsets.all(5),
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// border: Border(
|
|
|
|
|
// bottom: BorderSide(
|
|
|
|
|
// color: Colors.grey,
|
|
|
|
|
// width: 1.0,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// // borderRadius: BorderRadius.circular(12),
|
|
|
|
|
// ),
|
|
|
|
|
// child: Row(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Texts(
|
|
|
|
|
// TranslationBase.of(context).OrderStatus,
|
|
|
|
|
// bold: false,
|
|
|
|
|
// fontSize: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 4,
|
|
|
|
|
// ),
|
|
|
|
|
// Texts(
|
|
|
|
|
// projectViewModel.isArabic ? widget.model.pendingOrder.descriptionN : widget.model.pendingOrder.description,
|
|
|
|
|
// fontSize: 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),
|
|
|
|
|
// ),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Texts(
|
|
|
|
|
// TranslationBase.of(context).requestID,
|
|
|
|
|
// bold: false,
|
|
|
|
|
// fontSize: 13,
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 4,
|
|
|
|
|
// ),
|
|
|
|
|
// Texts(
|
|
|
|
|
// widget.model.pendingOrder.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),
|
|
|
|
|
// ),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Texts(
|
|
|
|
|
// TranslationBase.of(context).pickupDate,
|
|
|
|
|
// bold: false,
|
|
|
|
|
// fontSize: 13,
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 4,
|
|
|
|
|
// ),
|
|
|
|
|
// Texts(
|
|
|
|
|
// DateUtil.getDayMonthYearDateFormatted(DateUtil.convertStringToDate(widget.model.pendingOrder.createdOn)),
|
|
|
|
|
// fontSize: 22,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ...List.generate(
|
|
|
|
|
// widget.model.hhcAllOrderDetail.length,
|
|
|
|
|
// (index) => 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: Theme.of(context).primaryColor),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Texts(
|
|
|
|
|
// TranslationBase.of(context).serviceName,
|
|
|
|
|
// bold: false,
|
|
|
|
|
// fontSize: 13,
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 4,
|
|
|
|
|
// ),
|
|
|
|
|
// Texts(
|
|
|
|
|
// projectViewModel.isArabic ? widget.model.hhcAllOrderDetail[index].descriptionN : widget.model.hhcAllOrderDetail[index].description,
|
|
|
|
|
// fontSize: 22,
|
|
|
|
|
// bold: true,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// Center(
|
|
|
|
|
// child: Container(
|
|
|
|
|
// width: MediaQuery.of(context).size.width * 0.85,
|
|
|
|
|
// child: SecondaryButton(
|
|
|
|
|
// label: TranslationBase.of(context).cancel.toUpperCase(),
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// showConfirmMessage(widget.model, widget.model.hhcAllOrderDetail[0]);
|
|
|
|
|
// },
|
|
|
|
|
// color: Colors.red[800],
|
|
|
|
|
// disabled: false,
|
|
|
|
|
// textColor: Theme.of(context).backgroundColor),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
//),
|
|
|
|
|
)
|
|
|
|
|
: NewHomeHealthCareStepOnePage(
|
|
|
|
|
changePageViewIndex: _changeCurrentTab,
|
|
|
|
|
patientERInsertPresOrderRequestModel:
|
|
|
|
|
patientERInsertPresOrderRequestModel,
|
|
|
|
|
patientERInsertPresOrderRequestModel: patientERInsertPresOrderRequestModel,
|
|
|
|
|
model: widget.model,
|
|
|
|
|
),
|
|
|
|
|
NewHomeHealthCareStepTowPage(
|
|
|
|
|
latitude: _latitude,
|
|
|
|
|
longitude: _longitude,
|
|
|
|
|
changePageViewIndex: _changeCurrentTab,
|
|
|
|
|
patientERInsertPresOrderRequestModel:
|
|
|
|
|
patientERInsertPresOrderRequestModel,
|
|
|
|
|
model: widget.model,
|
|
|
|
|
),
|
|
|
|
|
NewHomeHealthCareStepThreePage(
|
|
|
|
|
changePageViewIndex: _changeCurrentTab,
|
|
|
|
|
patientERInsertPresOrderRequestModel:
|
|
|
|
|
patientERInsertPresOrderRequestModel,
|
|
|
|
|
model: widget.model,
|
|
|
|
|
)
|
|
|
|
|
// NewHomeHealthCareStepTowPage(
|
|
|
|
|
// latitude: _latitude,
|
|
|
|
|
// longitude: _longitude,
|
|
|
|
|
// changePageViewIndex: _changeCurrentTab,
|
|
|
|
|
// patientERInsertPresOrderRequestModel: patientERInsertPresOrderRequestModel,
|
|
|
|
|
// model: widget.model,
|
|
|
|
|
// ),
|
|
|
|
|
// NewHomeHealthCareStepThreePage(
|
|
|
|
|
// changePageViewIndex: _changeCurrentTab,
|
|
|
|
|
// patientERInsertPresOrderRequestModel: patientERInsertPresOrderRequestModel,
|
|
|
|
|
// model: widget.model,
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|