From 9d780f72b4fec8357860b5143294d35afd61215d Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Thu, 22 Apr 2021 17:07:10 +0300 Subject: [PATCH] remove commented code --- .../patients/profile/note/update_note.dart | 136 ------------------ 1 file changed, 136 deletions(-) diff --git a/lib/screens/patients/profile/note/update_note.dart b/lib/screens/patients/profile/note/update_note.dart index 3b429c97..5f3ef251 100644 --- a/lib/screens/patients/profile/note/update_note.dart +++ b/lib/screens/patients/profile/note/update_note.dart @@ -185,141 +185,5 @@ class _UpdateNoteOrderState extends State { ), ), ); - // return BaseView( - // builder: (BuildContext context, PatientViewModel model, Widget child) => - // AppScaffold( - // isShowAppBar: false, - // backgroundColor: Theme - // .of(context) - // .scaffoldBackgroundColor, - // body: SingleChildScrollView( - // child: Container( - // height: MediaQuery - // .of(context) - // .size - // .height * 1.0, - // child: Padding( - // padding: EdgeInsets.all(0.0), - // child: Column( - // crossAxisAlignment: CrossAxisAlignment.start, - // children: [ - // BottomSheetTitle(title: widget.visitType == 3 - // ? 'Add Order Sheet' - // : 'Add Progress Note',), - // SizedBox( - // height: 10.0, - // ), - // - // Center( - // child: FractionallySizedBox( - // widthFactor: 0.9, - // child: Column( - // children: [ - // AppTextFieldCustom( - // hintText: widget.visitType == 3 - // ? 'Add Order Sheet' - // : 'Add Progress Note', - // //TranslationBase.of(context).addProgressNote, - // controller: progressNoteController, - // maxLines: 25, - // minLines: 10, - // hasBorder: true, - // validationError:progressNoteController.text.isEmpty&&isSubmitted?TranslationBase.of(context).emptyMessage:null , - // - // ), - // ], - // ), - // ), - // ), - // - // ], - // ), - // ), - // ), - // ), - // bottomSheet: Container( - // margin: EdgeInsets.all(SizeConfig.widthMultiplier * 5), - // child: Wrap( - // alignment: WrapAlignment.center, - // children: [ - // AppButton( - // title: widget.visitType == 3 - // ? 'Add Order Sheet' - // : 'Add Progress Note', - // color: Color(0xff359846), - // // disabled: progressNoteController.text.isEmpty, - // fontWeight: FontWeight.w700, - // onPressed: () async { - // setState(() { - // isSubmitted = true; - // }); - // if (progressNoteController.text.isNotEmpty) { - // GifLoaderDialogUtils.showMyDialog(context); - // Map profile = await sharedPref.getObj(DOCTOR_PROFILE); - // - // DoctorProfileModel doctorProfile = DoctorProfileModel - // .fromJson(profile); - // - // - // if (widget.isUpdate) { - // UpdateNoteReqModel reqModel = UpdateNoteReqModel( - // admissionNo: int.parse(widget.patient - // .admissionNo), - // cancelledNote: false, - // lineItemNo: 30, - // createdBy: widget.note.createdBy, - // notes: progressNoteController.text - // - // , - // verifiedNote: false, - // - // patientTypeID: widget.patient.patientType, - // patientOutSA: false, - // ); - // await model.updatePatientProgressNote(reqModel); - // } else { - // CreateNoteModel reqModel = CreateNoteModel( - // admissionNo: int.parse(widget.patient - // .admissionNo), - // createdBy: doctorProfile.doctorID, - // visitType: widget.visitType, - // patientID: widget.patient.patientId, - // nursingRemarks: ' ', - // patientTypeID: widget.patient.patientType, - // patientOutSA: false, - // - // notes: progressNoteController.text - // ); - // - // await model.createPatientProgressNote(reqModel); - // } - // - // if (model.state == ViewState.ErrorLocal) { - // Helpers.showErrorToast( - // Helpers.generateContactAdminMsg()); - // } else { - // ProgressNoteRequest progressNoteRequest = - // ProgressNoteRequest( - // visitType: widget.visitType, - // // if equal 5 then this will return progress note - // admissionNo: int.parse(widget.patient - // .admissionNo), - // projectID: widget.patient.projectId, - // patientTypeID: widget.patient.patientType, - // languageID: 2); - // await widget.patientModel.getPatientProgressNote( - // progressNoteRequest.toJson()); - // } - // - // GifLoaderDialogUtils.hideDialog(context); - // Navigator.of(context).pop(); - // } - // } - // ), - // ], - // ), - // ), - // ), - // ); } }