operation report

merge-requests/867/head
Elham Rababh 4 years ago
parent 93bcfff7a0
commit 230ebaf445

@ -68,27 +68,6 @@ class _ProgressNoteState extends State<OperationReportScreen> {
color: Colors.grey[200], color: Colors.grey[200],
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
AddNewOrder(
onTap: () async {
await locator<AnalyticsService>().logEvent(
eventCategory: "Operation Report Screen",
eventAction: "Update Operation Report ",
);
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => UpdateOperationReport(
operationReportViewModel: model,
patient: patient,
visitType: widget.visitType,
isUpdate: false,
),
settings: RouteSettings(name: 'UpdateNoteOrder'),
),
);
},
label: TranslationBase.of(context).operationReports,
),
model.operationReportList == null || model.operationReportList == null ||
model.operationReportList.length == 0 model.operationReportList.length == 0
? DrAppEmbeddedError( ? DrAppEmbeddedError(
@ -234,13 +213,12 @@ class _ProgressNoteState extends State<OperationReportScreen> {
), ),
) )
]), ]),
if (model.operationReportList[index] if (model.operationReportList[index]
.timeStart != .timeStart !=
null) null)
Row( Row(
mainAxisAlignment: mainAxisAlignment:
MainAxisAlignment.start, MainAxisAlignment.start,
children: [ children: [
AppText( AppText(
"Operation Time Start : ", "Operation Time Start : ",
@ -248,7 +226,9 @@ class _ProgressNoteState extends State<OperationReportScreen> {
), ),
Expanded( Expanded(
child: AppText( child: AppText(
model.operationReportList[index] model
.operationReportList[
index]
.timeStart, .timeStart,
fontSize: 10, fontSize: 10,
), ),
@ -297,7 +277,14 @@ class _ProgressNoteState extends State<OperationReportScreen> {
MainAxisAlignment.end, MainAxisAlignment.end,
children: [ children: [
InkWell( InkWell(
onTap: () { onTap: () async {
await locator<AnalyticsService>()
.logEvent(
eventCategory:
"Operation Report Screen",
eventAction:
"Update Operation Report ",
);
Navigator.push( Navigator.push(
context, context,
MaterialPageRoute( MaterialPageRoute(
@ -332,8 +319,7 @@ class _ProgressNoteState extends State<OperationReportScreen> {
width: 2, width: 2,
), ),
AppText( AppText(
TranslationBase.of(context) "Operation Reports",
.update,
fontSize: 10, fontSize: 10,
color: Colors.white, color: Colors.white,
), ),

Loading…
Cancel
Save