diff --git a/lib/core/model/Prescriptions/prescription_report.dart b/lib/core/model/Prescriptions/prescription_report.dart index d2427004..006a6fad 100644 --- a/lib/core/model/Prescriptions/prescription_report.dart +++ b/lib/core/model/Prescriptions/prescription_report.dart @@ -1,13 +1,13 @@ class PrescriptionReport { String address; - int appointmentNo; + dynamic appodynamicmentNo; String clinic; String companyName; - int days; + dynamic days; String doctorName; var doseDailyQuantity; String frequency; - int frequencyNumber; + dynamic frequencyNumber; String image; String imageExtension; String imageSRCUrl; @@ -15,30 +15,30 @@ class PrescriptionReport { String imageThumbUrl; String isCovered; String itemDescription; - int itemID; + dynamic itemID; String orderDate; - int patientID; + dynamic patientID; String patientName; String phoneOffice1; String prescriptionQR; - int prescriptionTimes; + dynamic prescriptionTimes; String productImage; String productImageBase64; String productImageString; - int projectID; + dynamic projectID; String projectName; String remarks; String route; String sKU; - int scaleOffset; + dynamic scaleOffset; String startDate; String patientAge; String patientGender; String phoneOffice; - int doseTimingID; - int frequencyID; - int routeID; + dynamic doseTimingID; + dynamic frequencyID; + dynamic routeID; String name; String itemDescriptionN; String routeN; @@ -46,7 +46,7 @@ class PrescriptionReport { PrescriptionReport({ this.address, - this.appointmentNo, + this.appodynamicmentNo, this.clinic, this.companyName, this.days, @@ -92,7 +92,7 @@ class PrescriptionReport { PrescriptionReport.fromJson(Map json) { address = json['Address']; - appointmentNo = json['AppointmentNo']; + appodynamicmentNo = json['AppodynamicmentNo']; clinic = json['Clinic']; companyName = json['CompanyName']; days = json['Days']; @@ -141,7 +141,7 @@ class PrescriptionReport { final Map data = new Map(); data['Address'] = this.address; - data['AppointmentNo'] = this.appointmentNo; + data['AppodynamicmentNo'] = this.appodynamicmentNo; data['Clinic'] = this.clinic; data['CompanyName'] = this.companyName; data['Days'] = this.days; diff --git a/lib/core/model/Prescriptions/prescription_report_enh.dart b/lib/core/model/Prescriptions/prescription_report_enh.dart index 203eaaff..01b9a5c9 100644 --- a/lib/core/model/Prescriptions/prescription_report_enh.dart +++ b/lib/core/model/Prescriptions/prescription_report_enh.dart @@ -1,41 +1,41 @@ class PrescriptionReportEnh { String address; - int appointmentNo; + dynamic appodynamicmentNo; String clinic; - Null companyName; - int days; + dynamic companyName; + dynamic days; String doctorName; - int doseDailyQuantity; + dynamic doseDailyQuantity; String frequency; - int frequencyNumber; - Null image; - Null imageExtension; + dynamic frequencyNumber; + dynamic image; + dynamic imageExtension; String imageSRCUrl; - Null imageString; + dynamic imageString; String imageThumbUrl; String isCovered; String itemDescription; - int itemID; + dynamic itemID; String orderDate; - int patientID; + dynamic patientID; String patientName; String phoneOffice1; - Null prescriptionQR; - int prescriptionTimes; - Null productImage; - Null productImageBase64; + dynamic prescriptionQR; + dynamic prescriptionTimes; + dynamic productImage; + dynamic productImageBase64; String productImageString; - int projectID; + dynamic projectID; String projectName; String remarks; String route; String sKU; - int scaleOffset; + dynamic scaleOffset; String startDate; PrescriptionReportEnh( {this.address, - this.appointmentNo, + this.appodynamicmentNo, this.clinic, this.companyName, this.days, @@ -70,7 +70,7 @@ class PrescriptionReportEnh { PrescriptionReportEnh.fromJson(Map json) { address = json['Address']; - appointmentNo = json['AppointmentNo']; + appodynamicmentNo = json['AppodynamicmentNo']; clinic = json['Clinic']; companyName = json['CompanyName']; days = json['Days']; @@ -107,7 +107,7 @@ class PrescriptionReportEnh { Map toJson() { final Map data = new Map(); data['Address'] = this.address; - data['AppointmentNo'] = this.appointmentNo; + data['AppodynamicmentNo'] = this.appodynamicmentNo; data['Clinic'] = this.clinic; data['CompanyName'] = this.companyName; data['Days'] = this.days; diff --git a/lib/screens/patients/In_patient/in_patient_screen.dart b/lib/screens/patients/In_patient/in_patient_screen.dart index c5de8866..d7bd805a 100644 --- a/lib/screens/patients/In_patient/in_patient_screen.dart +++ b/lib/screens/patients/In_patient/in_patient_screen.dart @@ -7,6 +7,7 @@ import 'package:doctor_app_flutter/models/dashboard/get_special_clinical_care_Li import 'package:doctor_app_flutter/screens/base/base_view.dart'; import 'package:doctor_app_flutter/screens/patients/In_patient/InPatientHeader.dart'; import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart'; +import 'package:doctor_app_flutter/util/helpers.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; @@ -50,7 +51,9 @@ class _InPatientScreenState extends State } _handleTabSelection() { + Helpers.hideKeyboard(context); setState(() { + widget.showBottomSheet = false; _activeTab = _tabController.index; }); } diff --git a/lib/widgets/shared/text_fields/text_fields_utils.dart b/lib/widgets/shared/text_fields/text_fields_utils.dart index 54c7e494..1f1ff2bb 100644 --- a/lib/widgets/shared/text_fields/text_fields_utils.dart +++ b/lib/widgets/shared/text_fields/text_fields_utils.dart @@ -46,7 +46,7 @@ class TextFieldsUtils{ borderSide: BorderSide(color: Color(0xFFCCCCCC), width: 2.0), borderRadius: BorderRadius.circular(8), ),*/ - hintText: selectedText != null ? selectedText : hintText, + hintText: selectedText != null ? selectedText : hintText??"", suffixIcon: Icon(suffixIcon??null, color: Colors.grey.shade600,), hintStyle: TextStyle(