|
|
|
@ -28,80 +28,78 @@ class UpdateChiefComplaints extends StatelessWidget {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
Radius.circular(10.0),
|
|
|
|
|
),
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: HexColor('#707070'),
|
|
|
|
|
width: 0.30),
|
|
|
|
|
),
|
|
|
|
|
child: NewTextFields(
|
|
|
|
|
hintText: TranslationBase.of(context).addChiefComplaints,
|
|
|
|
|
controller: complaintsController,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin:
|
|
|
|
|
EdgeInsets.only(left: 10, right: 10, top: 15),
|
|
|
|
|
child: TextFields(
|
|
|
|
|
hasLabelText: complaintsController.text != ''
|
|
|
|
|
? true
|
|
|
|
|
: false,
|
|
|
|
|
hintText: TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.addChiefComplaints,
|
|
|
|
|
fontSize: 13.5,
|
|
|
|
|
// hintColor: Colors.black,
|
|
|
|
|
showLabelText: true,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
maxLines: 25,
|
|
|
|
|
minLines: 13,
|
|
|
|
|
controller: complaintsController,
|
|
|
|
|
validator: (value) {
|
|
|
|
|
if (value == null || value == "")
|
|
|
|
|
return TranslationBase.of(context)
|
|
|
|
|
.emptyMessage;
|
|
|
|
|
else if (value.length < 25)
|
|
|
|
|
return TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.chiefComplaintLength;
|
|
|
|
|
//"";
|
|
|
|
|
else
|
|
|
|
|
return null;
|
|
|
|
|
}),
|
|
|
|
|
//TODO handel error cases
|
|
|
|
|
NewTextFields(
|
|
|
|
|
hintText: TranslationBase.of(context).addChiefComplaints,
|
|
|
|
|
controller: complaintsController,
|
|
|
|
|
maxLines: 25,
|
|
|
|
|
minLines: 13,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
|
// margin:
|
|
|
|
|
// EdgeInsets.only(left: 10, right: 10, top: 15),
|
|
|
|
|
// child: TextFields(
|
|
|
|
|
// hasLabelText: complaintsController.text != ''
|
|
|
|
|
// ? true
|
|
|
|
|
// : false,
|
|
|
|
|
// hintText: TranslationBase
|
|
|
|
|
// .of(context)
|
|
|
|
|
// .addChiefComplaints,
|
|
|
|
|
// fontSize: 13.5,
|
|
|
|
|
// // hintColor: Colors.black,
|
|
|
|
|
// showLabelText: true,
|
|
|
|
|
// fontWeight: FontWeight.w600,
|
|
|
|
|
// maxLines: 25,
|
|
|
|
|
// minLines: 13,
|
|
|
|
|
// controller: complaintsController,
|
|
|
|
|
// validator: (value) {
|
|
|
|
|
// if (value == null || value == "")
|
|
|
|
|
// return TranslationBase.of(context)
|
|
|
|
|
// .emptyMessage;
|
|
|
|
|
// else if (value.length < 25)
|
|
|
|
|
// return TranslationBase
|
|
|
|
|
// .of(context)
|
|
|
|
|
// .chiefComplaintLength;
|
|
|
|
|
// //"";
|
|
|
|
|
// else
|
|
|
|
|
// return null;
|
|
|
|
|
// }),
|
|
|
|
|
// ),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin:
|
|
|
|
|
EdgeInsets.only(left: 10, right: 10, top: 15),
|
|
|
|
|
child: TextFields(
|
|
|
|
|
hasLabelText:
|
|
|
|
|
illnessController.text != '' ? true : false,
|
|
|
|
|
showLabelText: true,
|
|
|
|
|
hintText: TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.historyOfPresentIllness,
|
|
|
|
|
fontSize: 13.5,
|
|
|
|
|
// hintColor: Colors.black,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
maxLines: 25,
|
|
|
|
|
minLines: 13,
|
|
|
|
|
controller: illnessController,
|
|
|
|
|
validator: (value) {
|
|
|
|
|
if (value == null || value == "")
|
|
|
|
|
return TranslationBase.of(context)
|
|
|
|
|
.emptyMessage;
|
|
|
|
|
else
|
|
|
|
|
return null;
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
NewTextFields(
|
|
|
|
|
hintText: TranslationBase.of(context).historyOfPresentIllness,
|
|
|
|
|
controller: illnessController,
|
|
|
|
|
maxLines: 25,
|
|
|
|
|
minLines: 13,
|
|
|
|
|
),
|
|
|
|
|
// Container(
|
|
|
|
|
// margin:
|
|
|
|
|
// EdgeInsets.only(left: 10, right: 10, top: 15),
|
|
|
|
|
// child: TextFields(
|
|
|
|
|
// hasLabelText:
|
|
|
|
|
// illnessController.text != '' ? true : false,
|
|
|
|
|
// showLabelText: true,
|
|
|
|
|
// hintText: TranslationBase
|
|
|
|
|
// .of(context)
|
|
|
|
|
// .historyOfPresentIllness,
|
|
|
|
|
// fontSize: 13.5,
|
|
|
|
|
// // hintColor: Colors.black,
|
|
|
|
|
// fontWeight: FontWeight.w600,
|
|
|
|
|
// maxLines: 25,
|
|
|
|
|
// minLines: 13,
|
|
|
|
|
// controller: illnessController,
|
|
|
|
|
// validator: (value) {
|
|
|
|
|
// if (value == null || value == "")
|
|
|
|
|
// return TranslationBase.of(context)
|
|
|
|
|
// .emptyMessage;
|
|
|
|
|
// else
|
|
|
|
|
// return null;
|
|
|
|
|
// }),
|
|
|
|
|
// ),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
@ -114,31 +112,38 @@ class UpdateChiefComplaints extends StatelessWidget {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin:
|
|
|
|
|
EdgeInsets.only(left: 10, right: 10, top: 15),
|
|
|
|
|
child: TextFields(
|
|
|
|
|
hasLabelText: medicationController.text != ''
|
|
|
|
|
? true
|
|
|
|
|
: false,
|
|
|
|
|
showLabelText: true,
|
|
|
|
|
hintText: TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.currentMedications,
|
|
|
|
|
fontSize: 13.5,
|
|
|
|
|
// hintColor: Colors.black,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
maxLines: 23,
|
|
|
|
|
minLines: 10,
|
|
|
|
|
controller: medicationController,
|
|
|
|
|
validator: (value) {
|
|
|
|
|
if (value == null || value == "")
|
|
|
|
|
return TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.emptyMessage;
|
|
|
|
|
else
|
|
|
|
|
return null;
|
|
|
|
|
}),
|
|
|
|
|
// Container(
|
|
|
|
|
// margin:
|
|
|
|
|
// EdgeInsets.only(left: 10, right: 10, top: 15),
|
|
|
|
|
// child: TextFields(
|
|
|
|
|
// hasLabelText: medicationController.text != ''
|
|
|
|
|
// ? true
|
|
|
|
|
// : false,
|
|
|
|
|
// showLabelText: true,
|
|
|
|
|
// hintText: TranslationBase
|
|
|
|
|
// .of(context)
|
|
|
|
|
// .currentMedications,
|
|
|
|
|
// fontSize: 13.5,
|
|
|
|
|
// // hintColor: Colors.black,
|
|
|
|
|
// fontWeight: FontWeight.w600,
|
|
|
|
|
// maxLines: 23,
|
|
|
|
|
// minLines: 10,
|
|
|
|
|
// controller: medicationController,
|
|
|
|
|
// validator: (value) {
|
|
|
|
|
// if (value == null || value == "")
|
|
|
|
|
// return TranslationBase
|
|
|
|
|
// .of(context)
|
|
|
|
|
// .emptyMessage;
|
|
|
|
|
// else
|
|
|
|
|
// return null;
|
|
|
|
|
// }),
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
NewTextFields(
|
|
|
|
|
hintText: TranslationBase.of(context).currentMedications,
|
|
|
|
|
controller: medicationController,
|
|
|
|
|
maxLines: 23,
|
|
|
|
|
minLines: 10,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|