First step from Home health care service
parent
fdc8ef36ef
commit
293c557b54
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
@ -0,0 +1,64 @@
|
|||||||
|
class HHCGetAllServicesRequestModel {
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
int languageID;
|
||||||
|
String iPAdress;
|
||||||
|
String generalid;
|
||||||
|
int patientOutSA;
|
||||||
|
String sessionID;
|
||||||
|
bool isDentalAllowedBackend;
|
||||||
|
int deviceTypeID;
|
||||||
|
int patientID;
|
||||||
|
String tokenID;
|
||||||
|
int patientTypeID;
|
||||||
|
int patientType;
|
||||||
|
|
||||||
|
HHCGetAllServicesRequestModel(
|
||||||
|
{this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.languageID,
|
||||||
|
this.iPAdress,
|
||||||
|
this.generalid,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.sessionID,
|
||||||
|
this.isDentalAllowedBackend,
|
||||||
|
this.deviceTypeID,
|
||||||
|
this.patientID,
|
||||||
|
this.tokenID,
|
||||||
|
this.patientTypeID,
|
||||||
|
this.patientType});
|
||||||
|
|
||||||
|
HHCGetAllServicesRequestModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
generalid = json['generalid'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||||
|
deviceTypeID = json['DeviceTypeID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
patientTypeID = json['PatientTypeID'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['VersionID'] = this.versionID;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['IPAdress'] = this.iPAdress;
|
||||||
|
data['generalid'] = this.generalid;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
data['SessionID'] = this.sessionID;
|
||||||
|
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||||
|
data['DeviceTypeID'] = this.deviceTypeID;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['TokenID'] = this.tokenID;
|
||||||
|
data['PatientTypeID'] = this.patientTypeID;
|
||||||
|
data['PatientType'] = this.patientType;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
class HHCGetAllServicesResponseModel {
|
||||||
|
int iD;
|
||||||
|
int serviceID;
|
||||||
|
String description;
|
||||||
|
String descriptionN;
|
||||||
|
bool isActive;
|
||||||
|
|
||||||
|
HHCGetAllServicesResponseModel(
|
||||||
|
{this.iD,
|
||||||
|
this.serviceID,
|
||||||
|
this.description,
|
||||||
|
this.descriptionN,
|
||||||
|
this.isActive});
|
||||||
|
|
||||||
|
HHCGetAllServicesResponseModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
iD = json['ID'];
|
||||||
|
serviceID = json['ServiceID'];
|
||||||
|
description = json['Description'];
|
||||||
|
descriptionN = json['DescriptionN'];
|
||||||
|
isActive = json['IsActive'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['ID'] = this.iD;
|
||||||
|
data['ServiceID'] = this.serviceID;
|
||||||
|
data['Description'] = this.description;
|
||||||
|
data['DescriptionN'] = this.descriptionN;
|
||||||
|
data['IsActive'] = this.isActive;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
|
||||||
|
class PatientERHHCInsertServicesList {
|
||||||
|
int recordID;
|
||||||
|
int serviceID;
|
||||||
|
String serviceName;
|
||||||
|
|
||||||
|
PatientERHHCInsertServicesList(
|
||||||
|
{this.recordID, this.serviceID, this.serviceName});
|
||||||
|
|
||||||
|
PatientERHHCInsertServicesList.fromJson(Map<String, dynamic> json) {
|
||||||
|
recordID = json['RecordID'];
|
||||||
|
serviceID = json['ServiceID'];
|
||||||
|
serviceName = json['ServiceName'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['RecordID'] = this.recordID;
|
||||||
|
data['ServiceID'] = this.serviceID;
|
||||||
|
data['ServiceName'] = this.serviceName;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
class GetHHCAllPresOrdersRequestModel {
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
int languageID;
|
||||||
|
String iPAdress;
|
||||||
|
String generalid;
|
||||||
|
int patientOutSA;
|
||||||
|
String sessionID;
|
||||||
|
bool isDentalAllowedBackend;
|
||||||
|
int deviceTypeID;
|
||||||
|
int patientID;
|
||||||
|
String tokenID;
|
||||||
|
int patientTypeID;
|
||||||
|
int patientType;
|
||||||
|
|
||||||
|
GetHHCAllPresOrdersRequestModel(
|
||||||
|
{this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.languageID,
|
||||||
|
this.iPAdress,
|
||||||
|
this.generalid,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.sessionID,
|
||||||
|
this.isDentalAllowedBackend,
|
||||||
|
this.deviceTypeID,
|
||||||
|
this.patientID,
|
||||||
|
this.tokenID,
|
||||||
|
this.patientTypeID,
|
||||||
|
this.patientType});
|
||||||
|
|
||||||
|
GetHHCAllPresOrdersRequestModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
generalid = json['generalid'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||||
|
deviceTypeID = json['DeviceTypeID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
patientTypeID = json['PatientTypeID'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['VersionID'] = this.versionID;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['IPAdress'] = this.iPAdress;
|
||||||
|
data['generalid'] = this.generalid;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
data['SessionID'] = this.sessionID;
|
||||||
|
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||||
|
data['DeviceTypeID'] = this.deviceTypeID;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['TokenID'] = this.tokenID;
|
||||||
|
data['PatientTypeID'] = this.patientTypeID;
|
||||||
|
data['PatientType'] = this.patientType;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
class GetHHCAllPresOrdersResponseModel {
|
||||||
|
int iD;
|
||||||
|
String patientID;
|
||||||
|
bool patientOutSA;
|
||||||
|
bool isOutPatient;
|
||||||
|
int projectID;
|
||||||
|
int nearestProjectID;
|
||||||
|
double longitude;
|
||||||
|
double latitude;
|
||||||
|
String appointmentNo;
|
||||||
|
String dischargeID;
|
||||||
|
int lineItemNo;
|
||||||
|
int status;
|
||||||
|
String description;
|
||||||
|
String descriptionN;
|
||||||
|
String createdOn;
|
||||||
|
int serviceID;
|
||||||
|
int createdBy;
|
||||||
|
String editedOn;
|
||||||
|
int editedBy;
|
||||||
|
int channel;
|
||||||
|
dynamic clientRequestID;
|
||||||
|
bool returnedToQueue;
|
||||||
|
dynamic pickupDateTime;
|
||||||
|
dynamic pickupLocationName;
|
||||||
|
dynamic dropoffLocationName;
|
||||||
|
int realRRTHaveTransactions;
|
||||||
|
String nearestProjectDescription;
|
||||||
|
String nearestProjectDescriptionN;
|
||||||
|
String projectDescription;
|
||||||
|
String projectDescriptionN;
|
||||||
|
|
||||||
|
GetHHCAllPresOrdersResponseModel(
|
||||||
|
{this.iD,
|
||||||
|
this.patientID,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.isOutPatient,
|
||||||
|
this.projectID,
|
||||||
|
this.nearestProjectID,
|
||||||
|
this.longitude,
|
||||||
|
this.latitude,
|
||||||
|
this.appointmentNo,
|
||||||
|
this.dischargeID,
|
||||||
|
this.lineItemNo,
|
||||||
|
this.status,
|
||||||
|
this.description,
|
||||||
|
this.descriptionN,
|
||||||
|
this.createdOn,
|
||||||
|
this.serviceID,
|
||||||
|
this.createdBy,
|
||||||
|
this.editedOn,
|
||||||
|
this.editedBy,
|
||||||
|
this.channel,
|
||||||
|
this.clientRequestID,
|
||||||
|
this.returnedToQueue,
|
||||||
|
this.pickupDateTime,
|
||||||
|
this.pickupLocationName,
|
||||||
|
this.dropoffLocationName,
|
||||||
|
this.realRRTHaveTransactions,
|
||||||
|
this.nearestProjectDescription,
|
||||||
|
this.nearestProjectDescriptionN,
|
||||||
|
this.projectDescription,
|
||||||
|
this.projectDescriptionN});
|
||||||
|
|
||||||
|
GetHHCAllPresOrdersResponseModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
iD = json['ID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
isOutPatient = json['IsOutPatient'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
nearestProjectID = json['NearestProjectID'];
|
||||||
|
longitude = json['Longitude'];
|
||||||
|
latitude = json['Latitude'];
|
||||||
|
appointmentNo = json['AppointmentNo'];
|
||||||
|
dischargeID = json['DischargeID'];
|
||||||
|
lineItemNo = json['LineItemNo'];
|
||||||
|
status = json['Status'];
|
||||||
|
description = json['Description'];
|
||||||
|
descriptionN = json['DescriptionN'];
|
||||||
|
createdOn = json['CreatedOn'];
|
||||||
|
serviceID = json['ServiceID'];
|
||||||
|
createdBy = json['CreatedBy'];
|
||||||
|
editedOn = json['EditedOn'];
|
||||||
|
editedBy = json['EditedBy'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
clientRequestID = json['ClientRequestID'];
|
||||||
|
returnedToQueue = json['ReturnedToQueue'];
|
||||||
|
pickupDateTime = json['PickupDateTime'];
|
||||||
|
pickupLocationName = json['PickupLocationName'];
|
||||||
|
dropoffLocationName = json['DropoffLocationName'];
|
||||||
|
realRRTHaveTransactions = json['RealRRT_HaveTransactions'];
|
||||||
|
nearestProjectDescription = json['NearestProjectDescription'];
|
||||||
|
nearestProjectDescriptionN = json['NearestProjectDescriptionN'];
|
||||||
|
projectDescription = json['ProjectDescription'];
|
||||||
|
projectDescriptionN = json['ProjectDescriptionN'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['ID'] = this.iD;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
data['IsOutPatient'] = this.isOutPatient;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['NearestProjectID'] = this.nearestProjectID;
|
||||||
|
data['Longitude'] = this.longitude;
|
||||||
|
data['Latitude'] = this.latitude;
|
||||||
|
data['AppointmentNo'] = this.appointmentNo;
|
||||||
|
data['DischargeID'] = this.dischargeID;
|
||||||
|
data['LineItemNo'] = this.lineItemNo;
|
||||||
|
data['Status'] = this.status;
|
||||||
|
data['Description'] = this.description;
|
||||||
|
data['DescriptionN'] = this.descriptionN;
|
||||||
|
data['CreatedOn'] = this.createdOn;
|
||||||
|
data['ServiceID'] = this.serviceID;
|
||||||
|
data['CreatedBy'] = this.createdBy;
|
||||||
|
data['EditedOn'] = this.editedOn;
|
||||||
|
data['EditedBy'] = this.editedBy;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['ClientRequestID'] = this.clientRequestID;
|
||||||
|
data['ReturnedToQueue'] = this.returnedToQueue;
|
||||||
|
data['PickupDateTime'] = this.pickupDateTime;
|
||||||
|
data['PickupLocationName'] = this.pickupLocationName;
|
||||||
|
data['DropoffLocationName'] = this.dropoffLocationName;
|
||||||
|
data['RealRRT_HaveTransactions'] = this.realRRTHaveTransactions;
|
||||||
|
data['NearestProjectDescription'] = this.nearestProjectDescription;
|
||||||
|
data['NearestProjectDescriptionN'] = this.nearestProjectDescriptionN;
|
||||||
|
data['ProjectDescription'] = this.projectDescription;
|
||||||
|
data['ProjectDescriptionN'] = this.projectDescriptionN;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
import 'PatientERHHCInsertServicesList.dart';
|
||||||
|
|
||||||
|
class PatientERInsertPresOrderRequestModel {
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
int languageID;
|
||||||
|
String iPAdress;
|
||||||
|
String generalid;
|
||||||
|
int patientOutSA;
|
||||||
|
String sessionID;
|
||||||
|
bool isDentalAllowedBackend;
|
||||||
|
int deviceTypeID;
|
||||||
|
int patientID;
|
||||||
|
String tokenID;
|
||||||
|
int patientTypeID;
|
||||||
|
int patientType;
|
||||||
|
double latitude;
|
||||||
|
double longitude;
|
||||||
|
int createdBy;
|
||||||
|
int orderServiceID;
|
||||||
|
List<PatientERHHCInsertServicesList> patientERHHCInsertServicesList;
|
||||||
|
|
||||||
|
PatientERInsertPresOrderRequestModel(
|
||||||
|
{this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.languageID,
|
||||||
|
this.iPAdress,
|
||||||
|
this.generalid,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.sessionID,
|
||||||
|
this.isDentalAllowedBackend,
|
||||||
|
this.deviceTypeID,
|
||||||
|
this.patientID,
|
||||||
|
this.tokenID,
|
||||||
|
this.patientTypeID,
|
||||||
|
this.patientType,
|
||||||
|
this.latitude,
|
||||||
|
this.longitude,
|
||||||
|
this.createdBy,
|
||||||
|
this.orderServiceID,
|
||||||
|
this.patientERHHCInsertServicesList});
|
||||||
|
|
||||||
|
PatientERInsertPresOrderRequestModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
generalid = json['generalid'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||||
|
deviceTypeID = json['DeviceTypeID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
patientTypeID = json['PatientTypeID'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
latitude = json['Latitude'];
|
||||||
|
longitude = json['Longitude'];
|
||||||
|
createdBy = json['CreatedBy'];
|
||||||
|
orderServiceID = json['OrderServiceID'];
|
||||||
|
if (json['PatientER_HHC_InsertServicesList'] != null) {
|
||||||
|
patientERHHCInsertServicesList =
|
||||||
|
new List<PatientERHHCInsertServicesList>();
|
||||||
|
json['PatientER_HHC_InsertServicesList'].forEach((v) {
|
||||||
|
patientERHHCInsertServicesList
|
||||||
|
.add(new PatientERHHCInsertServicesList.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['VersionID'] = this.versionID;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['IPAdress'] = this.iPAdress;
|
||||||
|
data['generalid'] = this.generalid;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
data['SessionID'] = this.sessionID;
|
||||||
|
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||||
|
data['DeviceTypeID'] = this.deviceTypeID;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['TokenID'] = this.tokenID;
|
||||||
|
data['PatientTypeID'] = this.patientTypeID;
|
||||||
|
data['PatientType'] = this.patientType;
|
||||||
|
data['Latitude'] = this.latitude;
|
||||||
|
data['Longitude'] = this.longitude;
|
||||||
|
data['CreatedBy'] = this.createdBy;
|
||||||
|
data['OrderServiceID'] = this.orderServiceID;
|
||||||
|
if (this.patientERHHCInsertServicesList != null) {
|
||||||
|
data['PatientER_HHC_InsertServicesList'] =
|
||||||
|
this.patientERHHCInsertServicesList.map((v) => v.toJson()).toList();
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,45 @@
|
|||||||
|
import 'package:diplomaticquarterapp/config/config.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HomeHealthCare/HHC_get_all_services_request_modle.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HomeHealthCare/HHC_get_all_services_response_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HomeHealthCare/get_hHC_all_pres_orders_request_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HomeHealthCare/get_hhc_all_pres_orders_response_model.dart';
|
||||||
|
|
||||||
|
import '../base_service.dart';
|
||||||
|
|
||||||
|
class HomeHealthCareService extends BaseService {
|
||||||
|
List<HHCGetAllServicesResponseModel> hhcAllServicesList = List();
|
||||||
|
List<GetHHCAllPresOrdersResponseModel> hhcAllPresOrdersList = List();
|
||||||
|
|
||||||
|
Future getHHCAllServices(
|
||||||
|
HHCGetAllServicesRequestModel hHCGetAllServicesRequestModel) async {
|
||||||
|
hasError = false;
|
||||||
|
await baseAppClient.post(HHC_GET_ALL_SERVICES,
|
||||||
|
onSuccess: (dynamic response, int statusCode) {
|
||||||
|
hhcAllServicesList.clear();
|
||||||
|
response['PatientER_HHC_GetAllServicesList'].forEach((data) {
|
||||||
|
hhcAllServicesList.add(HHCGetAllServicesResponseModel.fromJson(data));
|
||||||
|
});
|
||||||
|
}, onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
}, body: hHCGetAllServicesRequestModel.toJson());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Future getHHCAllPresOrders() async {
|
||||||
|
|
||||||
|
GetHHCAllPresOrdersRequestModel getHHCAllPresOrdersRequestModel= GetHHCAllPresOrdersRequestModel();
|
||||||
|
hasError = false;
|
||||||
|
await baseAppClient.post(GET_PATIENT_ALL_PRES_ORDERS,
|
||||||
|
onSuccess: (dynamic response, int statusCode) {
|
||||||
|
hhcAllPresOrdersList.clear();
|
||||||
|
response['PatientER_GetPatientAllPresOrdersList'].forEach((data) {
|
||||||
|
hhcAllPresOrdersList.add(GetHHCAllPresOrdersResponseModel.fromJson(data));
|
||||||
|
});
|
||||||
|
}, onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
}, body: getHHCAllPresOrdersRequestModel.toJson());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HomeHealthCare/HHC_get_all_services_request_modle.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HomeHealthCare/HHC_get_all_services_response_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HomeHealthCare/get_hhc_all_pres_orders_response_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/service/AlHabibMedicalService/home_health_care_service.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/viewModels/base_view_model.dart';
|
||||||
|
|
||||||
|
import '../../../locator.dart';
|
||||||
|
|
||||||
|
class HomeHealthCareViewModel extends BaseViewModel {
|
||||||
|
HomeHealthCareService _homeHealthCareService =
|
||||||
|
locator<HomeHealthCareService>();
|
||||||
|
|
||||||
|
List<HHCGetAllServicesResponseModel> get hhcAllServicesList =>
|
||||||
|
_homeHealthCareService.hhcAllServicesList;
|
||||||
|
List<GetHHCAllPresOrdersResponseModel> get hhcAllPresOrders =>
|
||||||
|
_homeHealthCareService.hhcAllPresOrdersList;
|
||||||
|
|
||||||
|
Future getHHCAllServices() async {
|
||||||
|
HHCGetAllServicesRequestModel hHCGetAllServicesRequestModel =
|
||||||
|
new HHCGetAllServicesRequestModel();
|
||||||
|
setState(ViewState.Busy);
|
||||||
|
await _homeHealthCareService
|
||||||
|
.getHHCAllServices(hHCGetAllServicesRequestModel);
|
||||||
|
if (_homeHealthCareService.hasError) {
|
||||||
|
error = _homeHealthCareService.error;
|
||||||
|
setState(ViewState.Error);
|
||||||
|
} else {
|
||||||
|
setState(ViewState.Idle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getHHCAllPresOrders() async {
|
||||||
|
setState(ViewState.Busy);
|
||||||
|
await _homeHealthCareService.getHHCAllPresOrders();
|
||||||
|
if (_homeHealthCareService.hasError) {
|
||||||
|
error = _homeHealthCareService.error;
|
||||||
|
setState(ViewState.Error);
|
||||||
|
} else {
|
||||||
|
setState(ViewState.Idle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Sample ordinal data type.
|
||||||
|
class ChartSeries {
|
||||||
|
final String y;
|
||||||
|
final int x;
|
||||||
|
|
||||||
|
ChartSeries(this.y, this.x);
|
||||||
|
}
|
@ -0,0 +1,153 @@
|
|||||||
|
import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HomeHealthCare/PatientERHHCInsertServicesList.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HomeHealthCare/patient_er_insert_pres_order_request_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/viewModels/AlHabibMedicalService/home_health_care_view_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class NewHomeHealthCareStepOnePage extends StatefulWidget {
|
||||||
|
final PatientERInsertPresOrderRequestModel
|
||||||
|
patientERInsertPresOrderRequestModel;
|
||||||
|
final Function changePageViewIndex;
|
||||||
|
final HomeHealthCareViewModel model;
|
||||||
|
const NewHomeHealthCareStepOnePage(
|
||||||
|
{Key key,
|
||||||
|
this.patientERInsertPresOrderRequestModel,
|
||||||
|
this.model,
|
||||||
|
this.changePageViewIndex})
|
||||||
|
: super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_NewHomeHealthCareStepOnePageState createState() =>
|
||||||
|
_NewHomeHealthCareStepOnePageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _NewHomeHealthCareStepOnePageState
|
||||||
|
extends State<NewHomeHealthCareStepOnePage> {
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
|
||||||
|
widget
|
||||||
|
.patientERInsertPresOrderRequestModel
|
||||||
|
.patientERHHCInsertServicesList =[];
|
||||||
|
super.initState();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return AppScaffold(
|
||||||
|
isShowAppBar: false,
|
||||||
|
baseViewModel: widget.model,
|
||||||
|
body: SingleChildScrollView(
|
||||||
|
physics: ScrollPhysics(),
|
||||||
|
child: Container(
|
||||||
|
margin: EdgeInsets.all(12),
|
||||||
|
child: Center(
|
||||||
|
child: FractionallySizedBox(
|
||||||
|
widthFactor: 0.94,
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
SizedBox(
|
||||||
|
height: 20,
|
||||||
|
),
|
||||||
|
Texts(
|
||||||
|
// TranslationBase.of(context).advancePaymentLabel,
|
||||||
|
"Select Home Health Care Services",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
Column(
|
||||||
|
children: widget.model.hhcAllServicesList.map((service) {
|
||||||
|
return Container(
|
||||||
|
margin: EdgeInsets.only(top: 15),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
border:
|
||||||
|
Border.all(color: Colors.grey, width: 1),
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
color: Colors.white),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Checkbox(
|
||||||
|
value: isServiceSelected(
|
||||||
|
service.serviceID),
|
||||||
|
activeColor: Colors.black38,
|
||||||
|
onChanged: (bool newValue) {
|
||||||
|
setState(() {
|
||||||
|
this
|
||||||
|
.widget
|
||||||
|
.patientERInsertPresOrderRequestModel
|
||||||
|
.patientERHHCInsertServicesList
|
||||||
|
.add(new PatientERHHCInsertServicesList(
|
||||||
|
recordID: this
|
||||||
|
.widget
|
||||||
|
.patientERInsertPresOrderRequestModel
|
||||||
|
.patientERHHCInsertServicesList
|
||||||
|
.length,
|
||||||
|
serviceID:
|
||||||
|
service.serviceID,
|
||||||
|
serviceName:
|
||||||
|
service.description));
|
||||||
|
// widget.patientERInsertPresOrderRequestModel
|
||||||
|
// isPatientInsured = newValue;
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
Expanded(
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(20.0),
|
||||||
|
child: Texts(
|
||||||
|
service.description,
|
||||||
|
fontSize: 15,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}).toList(),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
bottomSheet:Container(
|
||||||
|
height: MediaQuery.of(context).size.height * 0.10,
|
||||||
|
width: double.infinity,
|
||||||
|
child: Column(
|
||||||
|
children: <Widget>[
|
||||||
|
Container(
|
||||||
|
width: MediaQuery
|
||||||
|
.of(context)
|
||||||
|
.size
|
||||||
|
.width * 0.9,
|
||||||
|
child: SecondaryButton(
|
||||||
|
label: "Next",
|
||||||
|
disabled: this.widget.patientERInsertPresOrderRequestModel.patientERHHCInsertServicesList.length ==0,
|
||||||
|
textColor: Theme
|
||||||
|
.of(context)
|
||||||
|
.backgroundColor),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
isServiceSelected(int serviceId) {
|
||||||
|
Iterable <PatientERHHCInsertServicesList> patientERHHCInsertServicesList = widget
|
||||||
|
.patientERInsertPresOrderRequestModel.patientERHHCInsertServicesList
|
||||||
|
.where((element) => serviceId == element.serviceID);
|
||||||
|
if(patientERHHCInsertServicesList.length > 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/create_e_referral_request_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HomeHealthCare/patient_er_insert_pres_order_request_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/viewModels/AlHabibMedicalService/home_health_care_view_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/E-Referral/New_E_Referral/new_e_referral_step_three_page.dart';
|
||||||
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/E-Referral/New_E_Referral/new_e_referral_step_two_page.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import 'new_Home_health_care_step_one_page.dart';
|
||||||
|
|
||||||
|
|
||||||
|
class NewHomeHealthCarePage extends StatefulWidget {
|
||||||
|
|
||||||
|
NewHomeHealthCarePage({this.model});
|
||||||
|
final HomeHealthCareViewModel model;
|
||||||
|
|
||||||
|
@override
|
||||||
|
_NewHomeHealthCarePageState createState() =>
|
||||||
|
_NewHomeHealthCarePageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _NewHomeHealthCarePageState extends State<NewHomeHealthCarePage>
|
||||||
|
with TickerProviderStateMixin {
|
||||||
|
PageController _controller;
|
||||||
|
int _currentIndex = 1;
|
||||||
|
int pageSelected = 2;
|
||||||
|
|
||||||
|
|
||||||
|
PatientERInsertPresOrderRequestModel patientERInsertPresOrderRequestModel = new PatientERInsertPresOrderRequestModel();
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
_controller = new PageController();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
changePageViewIndex(pageIndex) {
|
||||||
|
_controller.jumpToPage(pageIndex);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
body: SafeArea(
|
||||||
|
child: SingleChildScrollView(
|
||||||
|
child: Container(
|
||||||
|
height: MediaQuery.of(context).size.height * 0.8,
|
||||||
|
child: PageView(
|
||||||
|
physics: NeverScrollableScrollPhysics(),
|
||||||
|
controller: _controller,
|
||||||
|
onPageChanged: (index) {
|
||||||
|
setState(() {
|
||||||
|
_currentIndex = index;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
scrollDirection: Axis.horizontal,
|
||||||
|
children: <Widget>[
|
||||||
|
NewHomeHealthCareStepOnePage(
|
||||||
|
changePageViewIndex: changePageViewIndex,
|
||||||
|
patientERInsertPresOrderRequestModel: patientERInsertPresOrderRequestModel,
|
||||||
|
model: widget.model,
|
||||||
|
),
|
||||||
|
// NewEReferralStepTowPage(
|
||||||
|
// changePageViewIndex: changePageViewIndex,
|
||||||
|
// patientERInsertPresOrderRequestModel: patientERInsertPresOrderRequestModel,
|
||||||
|
//
|
||||||
|
// ),
|
||||||
|
// NewEReferralStepThreePage(
|
||||||
|
// changePageViewIndex: changePageViewIndex,
|
||||||
|
// patientERInsertPresOrderRequestModel: patientERInsertPresOrderRequestModel,
|
||||||
|
//
|
||||||
|
// ),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:hexcolor/hexcolor.dart';
|
||||||
|
|
||||||
|
import 'home_health_care_page.dart';
|
||||||
|
|
||||||
|
class HomeHealthCareIndexPage extends StatelessWidget {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return AppScaffold(
|
||||||
|
isShowAppBar: true,
|
||||||
|
appBarTitle: "Service Information",
|
||||||
|
body: SingleChildScrollView(
|
||||||
|
padding: EdgeInsets.all(12),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: <Widget>[
|
||||||
|
Texts(
|
||||||
|
"Water Tracker:",
|
||||||
|
fontWeight: FontWeight.normal,
|
||||||
|
fontSize: 25,
|
||||||
|
color: Hexcolor("#60686b"),
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 12,
|
||||||
|
),
|
||||||
|
Texts(
|
||||||
|
"This service is designed to help you to set drinking water goals and track the volume of water you are drinking on a daily basis. This service allows for schedule reminders and offers a basic statistical analysis of the amount of what you have consumed over the course of a day, week or month.",
|
||||||
|
fontWeight: FontWeight.normal,
|
||||||
|
fontSize: 17,
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 22,
|
||||||
|
),
|
||||||
|
Center(
|
||||||
|
child: Image.asset(
|
||||||
|
'assets/images/AlHabibMedicalService/Wifi-AR.png')),
|
||||||
|
SizedBox(
|
||||||
|
height: 77,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)),
|
||||||
|
bottomSheet: Container(
|
||||||
|
height: MediaQuery.of(context).size.height * 0.10,
|
||||||
|
width: double.infinity,
|
||||||
|
child: Column(
|
||||||
|
children: <Widget>[
|
||||||
|
Container(
|
||||||
|
width: MediaQuery.of(context).size.width * 0.9,
|
||||||
|
child: SecondaryButton(
|
||||||
|
onTap: () => Navigator.push(
|
||||||
|
context,
|
||||||
|
FadePage(
|
||||||
|
page: HomeHealthCarePage(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
label: "Home Health Care Page",
|
||||||
|
textColor: Theme.of(context).backgroundColor),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,131 @@
|
|||||||
|
import 'dart:ui';
|
||||||
|
|
||||||
|
import 'package:diplomaticquarterapp/core/viewModels/AlHabibMedicalService/home_health_care_view_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/viewModels/all_habib_medical_services/e_referral_view_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import 'NewHomeHealthCare/new_home_health_care_page.dart';
|
||||||
|
import 'orders_log_details_page.dart';
|
||||||
|
|
||||||
|
class HomeHealthCarePage extends StatefulWidget {
|
||||||
|
@override
|
||||||
|
_HomeHealthCarePageState createState() => _HomeHealthCarePageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _HomeHealthCarePageState extends State<HomeHealthCarePage>
|
||||||
|
with SingleTickerProviderStateMixin {
|
||||||
|
TabController _tabController;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
_tabController = TabController(length: 2, vsync: this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
super.dispose();
|
||||||
|
_tabController.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return BaseView<HomeHealthCareViewModel>(
|
||||||
|
onModelReady: (model){
|
||||||
|
model.getHHCAllServices();
|
||||||
|
model.getHHCAllPresOrders();
|
||||||
|
},
|
||||||
|
builder: (_, model, widget) => AppScaffold(
|
||||||
|
isShowAppBar: true,
|
||||||
|
appBarTitle: "Home Health Care",
|
||||||
|
body: Scaffold(
|
||||||
|
extendBodyBehindAppBar: true,
|
||||||
|
appBar: PreferredSize(
|
||||||
|
preferredSize: Size.fromHeight(65.0),
|
||||||
|
child: Stack(
|
||||||
|
children: <Widget>[
|
||||||
|
Positioned(
|
||||||
|
bottom: 1,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
child: BackdropFilter(
|
||||||
|
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
|
||||||
|
child: Container(
|
||||||
|
color: Theme.of(context)
|
||||||
|
.scaffoldBackgroundColor
|
||||||
|
.withOpacity(0.8),
|
||||||
|
height: 70.0,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Center(
|
||||||
|
child: Container(
|
||||||
|
height: 60.0,
|
||||||
|
margin: EdgeInsets.only(top: 10.0),
|
||||||
|
width: MediaQuery.of(context).size.width * 0.9,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
border: Border(
|
||||||
|
bottom: BorderSide(
|
||||||
|
color: Theme.of(context).dividerColor,
|
||||||
|
width: 0.7),
|
||||||
|
),
|
||||||
|
color: Colors.white),
|
||||||
|
child: Center(
|
||||||
|
child: TabBar(
|
||||||
|
isScrollable: true,
|
||||||
|
controller: _tabController,
|
||||||
|
indicatorWeight: 5.0,
|
||||||
|
indicatorSize: TabBarIndicatorSize.label,
|
||||||
|
indicatorColor: Colors.red[800],
|
||||||
|
labelColor: Theme.of(context).primaryColor,
|
||||||
|
labelPadding:
|
||||||
|
EdgeInsets.only(top: 4.0, left: 18.0, right: 18.0),
|
||||||
|
unselectedLabelColor: Colors.grey[800],
|
||||||
|
tabs: [
|
||||||
|
Container(
|
||||||
|
width: MediaQuery.of(context).size.width * 0.37,
|
||||||
|
child: Center(
|
||||||
|
child: Texts("Home Health Care"),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
width: MediaQuery.of(context).size.width * 0.37,
|
||||||
|
child: Center(
|
||||||
|
child: Texts("Order Log"),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
body: Column(
|
||||||
|
children: <Widget>[
|
||||||
|
Expanded(
|
||||||
|
child: TabBarView(
|
||||||
|
physics: BouncingScrollPhysics(),
|
||||||
|
controller: _tabController,
|
||||||
|
children: <Widget>[
|
||||||
|
NewHomeHealthCarePage(
|
||||||
|
model: model,
|
||||||
|
),
|
||||||
|
OrdersLogDetailsPage(
|
||||||
|
model: model,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
import 'package:diplomaticquarterapp/core/viewModels/AlHabibMedicalService/home_health_care_view_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/pages/Blood/new_text_Field.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:hexcolor/hexcolor.dart';
|
||||||
|
|
||||||
|
class OrdersLogDetailsPage extends StatelessWidget {
|
||||||
|
final HomeHealthCareViewModel model;
|
||||||
|
|
||||||
|
const OrdersLogDetailsPage({Key key, this.model}) : super(key: key);
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return AppScaffold(
|
||||||
|
isShowAppBar: false,
|
||||||
|
baseViewModel:model,
|
||||||
|
body: SingleChildScrollView(
|
||||||
|
physics: ScrollPhysics(),
|
||||||
|
child: Container(
|
||||||
|
margin: EdgeInsets.all(12),
|
||||||
|
child: Center(
|
||||||
|
child: FractionallySizedBox(
|
||||||
|
widthFactor: 0.94,
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
SizedBox(
|
||||||
|
height: 40,
|
||||||
|
),
|
||||||
|
Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
|
||||||
|
children: model.hhcAllPresOrders.map((order) {
|
||||||
|
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: [
|
||||||
|
|
||||||
|
Container(
|
||||||
|
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
border:
|
||||||
|
Border.all(color: Colors.grey, width: 1),
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
color: Colors.white),
|
||||||
|
child: NewTextFields(
|
||||||
|
readOnly: true,
|
||||||
|
hintText: "Enter Referral Requester Name*",
|
||||||
|
initialValue: order.iD.toString(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Texts(order.status.toString()),
|
||||||
|
Texts(order.status.toString()),
|
||||||
|
Texts(order.status.toString()),
|
||||||
|
Texts(order.status.toString()),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}).toList()
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
bottomSheet:Container(
|
||||||
|
height: MediaQuery.of(context).size.height * 0.10,
|
||||||
|
width: double.infinity,
|
||||||
|
child: Column(
|
||||||
|
children: <Widget>[
|
||||||
|
Container(
|
||||||
|
width: MediaQuery
|
||||||
|
.of(context)
|
||||||
|
.size
|
||||||
|
.width * 0.9,
|
||||||
|
child: SecondaryButton(
|
||||||
|
label: "Next",
|
||||||
|
disabled: false,
|
||||||
|
textColor: Theme
|
||||||
|
.of(context)
|
||||||
|
.backgroundColor),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue