add new icon for claims screen

This commit is contained in:
2024-11-29 11:39:42 +02:00
parent 5451bbf877
commit 64aae53efa

View File

@@ -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<PatientView> {
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<PatientView> {
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<PatientView> {
),
),
),
//============ 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,
),
),
),
],
);
}