diff --git a/Frontend/lib/mih_components/mih_package_components/mih_package_window.dart b/Frontend/lib/mih_components/mih_package_components/mih_package_window.dart index bce5446f..cbaafa11 100644 --- a/Frontend/lib/mih_components/mih_package_components/mih_package_window.dart +++ b/Frontend/lib/mih_components/mih_package_components/mih_package_window.dart @@ -198,8 +198,7 @@ class _MihPackageWindowState extends State { ), ), Visibility( - visible: - widget.menuOptions != null || widget.menuOptions!.isNotEmpty, + visible: (widget.menuOptions?.isNotEmpty ?? false), child: Positioned( top: 10, right: 10, diff --git a/Frontend/lib/mih_packages/patient_profile/pat_profile/list_builders/build_notes_list.dart b/Frontend/lib/mih_packages/patient_profile/pat_profile/list_builders/build_notes_list.dart index fa56ef3d..77c15290 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_profile/list_builders/build_notes_list.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_profile/list_builders/build_notes_list.dart @@ -211,142 +211,6 @@ class _BuildNotesListState extends State { ), ), ); - // showDialog( - // context: context, - // barrierDismissible: false, - // builder: (context) => Dialog( - // child: Stack( - // children: [ - // Container( - // padding: const EdgeInsets.all(15.0), - // width: 700.0, - // //height: 475.0, - // decoration: BoxDecoration( - // color: MzanziInnovationHub.of(context)!.theme.primaryColor(), - // borderRadius: BorderRadius.circular(25.0), - // border: Border.all( - // color: - // MzanziInnovationHub.of(context)!.theme.secondaryColor(), - // width: 5.0), - // ), - // child: Column( - // mainAxisSize: MainAxisSize.max, - // children: [ - // const SizedBox( - // height: 25, - // ), - // Text( - // selectednote.note_name, - // textAlign: TextAlign.center, - // style: TextStyle( - // color: MzanziInnovationHub.of(context)! - // .theme - // .secondaryColor(), - // fontSize: 35.0, - // fontWeight: FontWeight.bold, - // ), - // ), - // const SizedBox(height: 25.0), - // SizedBox( - // width: 700, - // child: MIHTextField( - // controller: businessNameController, - // hintText: "Office", - // editable: false, - // required: false, - // ), - // ), - // const SizedBox(height: 10.0), - // SizedBox( - // width: 700, - // child: MIHTextField( - // controller: userNameController, - // hintText: "Created By", - // editable: false, - // required: false, - // ), - // ), - // const SizedBox(height: 10.0), - // SizedBox( - // width: 700, - // child: MIHTextField( - // controller: dateController, - // hintText: "Created Date", - // editable: false, - // required: false, - // ), - // ), - // const SizedBox(height: 10.0), - // SizedBox( - // width: 700, - // child: MIHTextField( - // controller: noteTitleController, - // hintText: "Note Title", - // editable: false, - // required: false, - // ), - // ), - // const SizedBox(height: 10.0), - // Expanded( - // child: MIHMLTextField( - // controller: noteTextController, - // hintText: "Note Details", - // editable: false, - // required: false, - // ), - // ), - // //const SizedBox(height: 25.0), - // // SizedBox( - // // width: 300, - // // height: 100, - // // child: MIHButton( - // // onTap: () { - // // Navigator.pop(context); - // // }, - // // buttonText: "Close", - // // buttonColor: Colors.blueAccent, - // // textColor: Colors.white, - // // ), - // // ) - // ], - // ), - // ), - // Positioned( - // top: 5, - // right: 5, - // width: 50, - // height: 50, - // child: IconButton( - // onPressed: () { - // Navigator.pop(context); - // }, - // icon: Icon( - // Icons.close, - // color: MzanziInnovationHub.of(context)!.theme.errorColor(), - // size: 35, - // ), - // ), - // ), - // Positioned( - // top: 5, - // left: 5, - // width: 50, - // height: 50, - // child: IconButton( - // onPressed: () { - // deletePatientPopUp(selectednote.idpatient_notes); - // }, - // icon: Icon( - // Icons.delete, - // color: - // MzanziInnovationHub.of(context)!.theme.secondaryColor(), - // ), - // ), - // ), - // ], - // ), - // ), - // ); } @override