finish the new design on the progress note (SOAP)

merge-requests/463/head
Mohammad Aljammal 4 years ago
parent 7e33130ec7
commit 3a734f4718

@ -62,14 +62,13 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
)),
);
}
TextEditingController typeController = TextEditingController();
@override
void initState() {
super.initState();
if(widget.patientProgressNote.planNote !=null ){
setState(() {
isAddProgress = true;
isAddProgress = false;
});
}
}
@ -94,7 +93,9 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
widget.patientProgressNote.createdOn = model.patientProgressNoteList[0].createdOn;
widget.patientProgressNote.editedOn = model.patientProgressNoteList[0].editedOn;
widget.patientProgressNote.editedByName = model.patientProgressNoteList[0].editedByName;
setState(() {
isAddProgress = false;
});
}
widget.changeLoadingState(false);
},
@ -195,7 +196,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
children: [
Expanded(
child: Texts(
progressNoteController.text+"asdasd sdakfjhg gfadsfg dashkfgasd hgd sfnbsd,fbnsdafbasdnzb",
progressNoteController.text,
fontSize: 10,
),
@ -204,6 +205,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
onTap: (){
setState(() {
isAddProgress = true;
widget.changePageViewIndex(3,isChangeState:false);
});
},
child: Icon(DoctorApp.edit,size: 18,))
@ -266,10 +268,10 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
widget.patientProgressNote.planNote = progressNoteController.text;
isAddProgress = !isAddProgress;
});
submitPlan(model);
} else{
var asd ="";
// submitPlan(model);
Navigator.of(context).pop();
}
},
),
@ -309,7 +311,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
if (model.state == ViewState.ErrorLocal) {
helpers.showErrorToast(model.error);
} else {
Navigator.of(context).pop();
widget.changePageViewIndex(4,isChangeState:false);
}
} else {
helpers.showErrorToast(TranslationBase.of(context).progressNoteErrorMsg);

@ -38,9 +38,13 @@ class _UpdateSoapIndexState extends State<UpdateSoapIndex>
GetPatientProgressNoteResModel patientProgressNote =
GetPatientProgressNoteResModel();
changePageViewIndex(pageIndex) {
if (pageIndex != _currentIndex) changeLoadingState(true);
changePageViewIndex(pageIndex,{isChangeState = true}) {
if (pageIndex != _currentIndex && isChangeState)
changeLoadingState(true);
_controller.jumpToPage(pageIndex);
setState(() {
_currentIndex = pageIndex;
});
}
bool _isLoading = true;

Loading…
Cancel
Save