@ -19,6 +19,7 @@ import 'package:flutter/material.dart';
import ' package:provider/provider.dart ' ;
import ' ../../../../config/config.dart ' ;
import ' ../../../../core/viewModel/profile/intervention_medication_view_model.dart ' ;
import ' ../../../../widgets/shared/user-guid/CusomRow.dart ' ;
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances ( ) ;
@ -102,20 +103,11 @@ class _InterventionMedicationHistoryScreenState extends State<InterventionMedica
crossAxisAlignment:
CrossAxisAlignment . start ,
children: [
Row (
crossAxisAlignment:
CrossAxisAlignment
. start ,
children: [
AppText (
model
. allInterventionHistoryList [
index ] . setupId ,
fontWeight: FontWeight . w600 ,
fontSize: 14 ,
) ,
] ,
CustomRow (
labelSize: 14 ,
valueSize: 14 ,
label: ' Created By: ' ,
value: model . allInterventionHistoryList [ index ] . createdBy . toString ( ) ,
) ,
] ,
) ,
@ -128,6 +120,7 @@ class _InterventionMedicationHistoryScreenState extends State<InterventionMedica
. start ,
children: [
AppText (
AppDateUtils . getDayMonthYearDateFormatted (
AppDateUtils . convertStringToDate (
model
@ -139,6 +132,7 @@ class _InterventionMedicationHistoryScreenState extends State<InterventionMedica
isMonthShort: true ) ,
fontWeight: FontWeight . w600 ,
fontSize: 14 ,
color: Color ( 0xFF2B353E ) ,
) ,
] ,
) ,
@ -149,69 +143,24 @@ class _InterventionMedicationHistoryScreenState extends State<InterventionMedica
SizedBox (
height: 8 ,
) ,
Row (
mainAxisAlignment:
MainAxisAlignment . start ,
children: [
AppText (
' Remark: ' ,
fontSize: 12 ,
) ,
Expanded (
child: AppText (
model
. allInterventionHistoryList [
index ]
. remark ,
fontSize: 12 ,
isCopyable: true ,
) ,
CustomRow (
labelSize: 12 ,
valueSize: 12 ,
label: ' Remark: ' ,
value: model . allInterventionHistoryList [ index ] . remark ,
) ,
] ) ,
SizedBox (
height: 8 ,
) ,
Row (
mainAxisAlignment:
MainAxisAlignment . start ,
children: [
AppText (
' Created By Name: ' ,
fontSize: 12 ,
) ,
Expanded (
child: AppText (
model
. allInterventionHistoryList [
index ]
. createdByName ,
fontSize: 12 ,
isCopyable: true ,
) ,
CustomRow (
labelSize: 12 ,
valueSize: 12 ,
label: ' Created By Name: ' ,
value: model . allInterventionHistoryList [ index ] . createdByName ,
) ,
] ) ,
SizedBox (
height: 8 ,
) ,
Row (
mainAxisAlignment:
MainAxisAlignment . start ,
children: [
AppText (
' SetUp ID: ' ,
fontSize: 12 ,
) ,
Expanded (
child: AppText (
model
. allInterventionHistoryList [
index ]
. setupId ,
fontSize: 12 ,
isCopyable: true ,
) ,
) ,
] ) ,
SizedBox (
height: 8 ,
) ,
@ -233,6 +182,7 @@ class _InterventionMedicationHistoryScreenState extends State<InterventionMedica
orderNo: model . allInterventionHistoryList [ index ] . orderNo ,
admissionNo: model . allInterventionHistoryList [ index ] . admissionNo ,
interventionStatus: 1 ,
status: 61
) ;
if ( model . state = = ViewState . ErrorLocal ) {
GifLoaderDialogUtils . hideDialog ( context ) ;
@ -288,7 +238,8 @@ class _InterventionMedicationHistoryScreenState extends State<InterventionMedica
patientID: model . allInterventionHistoryList [ index ] . patientId ,
orderNo: model . allInterventionHistoryList [ index ] . orderNo ,
admissionNo: model . allInterventionHistoryList [ index ] . admissionNo ,
interventionStatus: 2
interventionStatus: 2 ,
status: 61
) ;
if ( model . state = = ViewState . ErrorLocal ) {
GifLoaderDialogUtils . hideDialog ( context ) ;