From 4cb15d68a345a1d9f611d6b61fff17daefccfcc6 Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Wed, 14 Apr 2021 13:23:31 +0300 Subject: [PATCH] delete commented code. --- .../soap_update/update_assessment_page.dart | 341 ------------------ 1 file changed, 341 deletions(-) diff --git a/lib/widgets/patients/profile/soap_update/update_assessment_page.dart b/lib/widgets/patients/profile/soap_update/update_assessment_page.dart index 14279b6e..6c3592fd 100644 --- a/lib/widgets/patients/profile/soap_update/update_assessment_page.dart +++ b/lib/widgets/patients/profile/soap_update/update_assessment_page.dart @@ -438,347 +438,6 @@ class _UpdateAssessmentPageState extends State { ]), isExpanded: isAssessmentExpand, ), - - // Container( - // width: double.infinity, - // margin: EdgeInsets.only(top: 10, left: 10, right: 10), - // padding: EdgeInsets.all(8.0), - // decoration: BoxDecoration( - // color: Colors.white, - // borderRadius: BorderRadius.all( - // Radius.circular(10.0), - // ), - // border: Border.all(color: Colors.grey[200], width: 0.5), - // ), - // child: HeaderBodyExpandableNotifier( - // headerWidget: Row( - // mainAxisAlignment: MainAxisAlignment.spaceBetween, - // children: [ - // Padding( - // padding: EdgeInsets.all(12.0), - // child: Row( - // children: [ - // Texts(TranslationBase.of(context).assessment, - // variant: - // isAssessmentExpand ? "bodyText" : '', - // bold: isAssessmentExpand ? true : false, - // color: Colors.black), - // Icon( - // FontAwesomeIcons.asterisk, - // color: Colors.black, - // size: 10, - // ) - // ], - // ), - // ), - // InkWell( - // onTap: () { - // setState(() { - // isAssessmentExpand = !isAssessmentExpand; - // }); - // }, - // child: Icon(isAssessmentExpand - // ? EvaIcons.arrowUp - // : EvaIcons.arrowDown)) - // ], - // ), - // bodyWidget: Column(children: [ - // SizedBox( - // height: 20, - // ), - // Column( - // children: [ - // Container( - // margin: - // EdgeInsets.only(left: 5, right: 5, top: 15), - // child: TextFields( - // hintText: TranslationBase.of(context) - // .addAssessment, - // fontSize: 13.5, - // onTapTextFields: () { - // openAssessmentDialog(context, - // isUpdate: false, model: model); - // }, - // readOnly: true, - // suffixIcon: EvaIcons.plusSquare, - // suffixIconColor: Colors.black, - // fontWeight: FontWeight.w600, - // validator: (value) { - // if (value == null) - // return TranslationBase.of(context) - // .emptyMessage; - // else - // return null; - // }), - // ), - // SizedBox( - // height: 20, - // ), - // Column( - // children: widget.mySelectedAssessmentList - // .map((assessment) { - // return Container( - // margin: EdgeInsets.only( - // left: 5, right: 5, top: 15), - // child: Row( - // mainAxisAlignment: - // MainAxisAlignment.spaceBetween, - // crossAxisAlignment: - // CrossAxisAlignment.start, - // children: [ - // Column( - // crossAxisAlignment: - // CrossAxisAlignment.start, - // children: [ - // Row( - // children: [ - // AppText( - // "ICD : ".toUpperCase(), - // fontSize: 10, - // color: Colors.grey, - // ), - // Container( - // child: AppText( - // assessment.selectedICD.code - // .trim() - // .toUpperCase() ?? - // "", - // fontWeight: FontWeight.w700, - // fontSize: 11, - // ), - // ), - // ], - // ), - // Row( - // mainAxisAlignment: - // MainAxisAlignment.start, - // crossAxisAlignment: - // CrossAxisAlignment.start, - // children: [ - // AppText( - // TranslationBase.of(context) - // .ICDName + - // " : ", - // fontSize: 13, - // color: Colors.grey, - // ), - // Container( - // width: MediaQuery.of(context) - // .size - // .width * - // 0.29, - // child: AppText( - // assessment - // .selectedICD.description - // .toString(), - // fontWeight: FontWeight.w700, - // fontSize: 10, - // ), - // ), - // ], - // ), - // Row( - // mainAxisAlignment: - // MainAxisAlignment.start, - // children: [ - // AppText( - // TranslationBase.of(context) - // .appointmentNo, - // fontSize: 10, - // color: Colors.grey, - // ), - // AppText( - // assessment.appointmentId - // .toString(), - // fontSize: 11, - // fontWeight: FontWeight.w700, - // ), - // ], - // ), - // Row( - // mainAxisAlignment: - // MainAxisAlignment.start, - // children: [ - // AppText( - // TranslationBase.of(context) - // .condition + - // " : ", - // fontSize: 10, - // color: Colors.grey, - // ), - // AppText( - // projectViewModel.isArabic - // ? assessment - // .selectedDiagnosisCondition - // .nameAr - // : assessment - // .selectedDiagnosisCondition - // .nameEn, - // fontSize: 11, - // fontWeight: FontWeight.w700, - // ), - // ], - // ), - // Row( - // mainAxisAlignment: - // MainAxisAlignment.start, - // children: [ - // AppText( - // TranslationBase.of(context) - // .dType + - // ' : ', - // fontSize: 10, - // color: Colors.grey, - // ), - // AppText( - // projectViewModel.isArabic - // ? assessment - // .selectedDiagnosisType - // .nameAr - // : assessment - // .selectedDiagnosisType - // .nameEn, - // fontSize: 11, - // fontWeight: FontWeight.w700, - // ), - // ], - // ), - // if (assessment.doctorName != null) - // Row( - // mainAxisAlignment: - // MainAxisAlignment.start, - // children: [ - // AppText( - // TranslationBase.of(context) - // .doc, - // fontSize: 10, - // color: Colors.grey, - // ), - // AppText( - // assessment.doctorName ?? '', - // fontSize: 11, - // fontWeight: FontWeight.w700, - // ), - // ], - // ), - // SizedBox( - // height: 6, - // ), - // Row( - // mainAxisAlignment: - // MainAxisAlignment.start, - // children: [ - // SizedBox( - // height: 6, - // ), - // AppText( - // assessment.remark != null || - // assessment.remark == - // '' - // ? TranslationBase.of( - // context) - // .remarks + - // " : " - // : '', - // fontSize: 10, - // color: Colors.grey, - // ), - // Container( - // width: MediaQuery.of(context) - // .size - // .width * - // 0.38, - // child: AppText( - // assessment.remark ?? "", - // fontSize: 11, - // fontWeight: FontWeight.w700, - // ), - // ), - // ], - // ), - // ], - // ), - // Column( - // crossAxisAlignment: - // CrossAxisAlignment.start, - // children: [ - // Row( - // children: [ - // AppText( - // assessment.createdOn != null - // ? DateTime.parse( - // assessment - // .createdOn) - // .day - // .toString() - // : DateTime.now() - // .day - // .toString(), - // fontWeight: FontWeight.bold, - // fontSize: 15, - // ), - // AppText(" "), - // AppText( - // Helpers.getMonth(assessment - // .createdOn != - // null - // ? DateTime.parse( - // assessment - // .createdOn) - // .month - // : DateTime.now() - // .month) - // .toUpperCase(), - // fontSize: 13, - // color: Colors.grey, - // ), - // ], - // ), - // SizedBox( - // height: MediaQuery.of(context) - // .size - // .height * - // 0.05, - // ), - // InkWell( - // onTap: () { - // openAssessmentDialog(context, - // isUpdate: true, - // assessment: assessment, - // model: model); - // }, - // child: Icon(EvaIcons.edit2), - // ) - // ], - // ), - // // Column( - // // children: [ - // // // SizedBox( - // // // height: 60, - // // // ), - // // InkWell( - // // onTap: () { - // // openAssessmentDialog( - // // context, - // // isUpdate: true, - // // assessment: assessment, - // // model: model); - // // }, - // // child: Icon(EvaIcons.edit2), - // // ) - // // ], - // // ), - // ], - // ), - // ); - // }).toList(), - // ) - // ], - // ) - // ]), - // isExpand: isAssessmentExpand, - // ), - // ), SizedBox( height: 130, ),