forked from yaso_meth/mih-project
fix null safety
This commit is contained in:
@@ -198,8 +198,7 @@ class _MihPackageWindowState extends State<MihPackageWindow> {
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
visible:
|
||||
widget.menuOptions != null || widget.menuOptions!.isNotEmpty,
|
||||
visible: (widget.menuOptions?.isNotEmpty ?? false),
|
||||
child: Positioned(
|
||||
top: 10,
|
||||
right: 10,
|
||||
|
||||
@@ -211,142 +211,6 @@ class _BuildNotesListState extends State<BuildNotesList> {
|
||||
),
|
||||
),
|
||||
);
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user