From 64aae53efa5686ce3e0ce136eacb6b8f4671bd9a Mon Sep 17 00:00:00 2001 From: yaso Date: Fri, 29 Nov 2024 11:39:42 +0200 Subject: [PATCH] add new icon for claims screen --- .../patient_profile/patient_view.dart | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/Frontend/lib/mih_packages/patient_profile/patient_view.dart b/Frontend/lib/mih_packages/patient_profile/patient_view.dart index 73de67d2..4144506f 100644 --- a/Frontend/lib/mih_packages/patient_profile/patient_view.dart +++ b/Frontend/lib/mih_packages/patient_profile/patient_view.dart @@ -1,5 +1,6 @@ import 'dart:convert'; +import 'package:Mzansi_Innovation_Hub/mih_packages/patient_profile/patient_claims_statements.dart'; import 'package:flutter/material.dart'; import 'package:flutter_swipe_detector/flutter_swipe_detector.dart'; import '../../main.dart'; @@ -94,7 +95,7 @@ class _PatientViewState extends State { businessUser: widget.arguments.businessUser, type: widget.arguments.type, ); - } else { + } else if (index == 2) { return PatientFiles( patientIndex: widget.arguments.selectedPatient!.idpatients, selectedPatient: widget.arguments.selectedPatient!, @@ -103,6 +104,15 @@ class _PatientViewState extends State { businessUser: widget.arguments.businessUser, type: widget.arguments.type, ); + } else { + return PatientClaimsOrStatements( + patientIndex: widget.arguments.selectedPatient!.idpatients, + selectedPatient: widget.arguments.selectedPatient!, + signedInUser: widget.arguments.signedInUser, + business: widget.arguments.business, + businessUser: widget.arguments.businessUser, + type: widget.arguments.type, + ); } } @@ -221,6 +231,35 @@ class _PatientViewState extends State { ), ), ), + //============ Claims/ Statements ================ + Visibility( + visible: _selectedIndex != 3, + child: IconButton( + onPressed: () { + setState(() { + _selectedIndex = 3; + }); + }, + icon: const Icon( + Icons.file_open_outlined, + size: 35, + ), + ), + ), + Visibility( + visible: _selectedIndex == 3, + child: IconButton.filled( + onPressed: () { + setState(() { + _selectedIndex = 3; + }); + }, + icon: const Icon( + Icons.file_open_outlined, + size: 35, + ), + ), + ), ], ); }