add new icon for claims screen
This commit is contained in:
parent
5451bbf877
commit
64aae53efa
1 changed files with 40 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:Mzansi_Innovation_Hub/mih_packages/patient_profile/patient_claims_statements.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_swipe_detector/flutter_swipe_detector.dart';
|
import 'package:flutter_swipe_detector/flutter_swipe_detector.dart';
|
||||||
import '../../main.dart';
|
import '../../main.dart';
|
||||||
|
|
@ -94,7 +95,7 @@ class _PatientViewState extends State<PatientView> {
|
||||||
businessUser: widget.arguments.businessUser,
|
businessUser: widget.arguments.businessUser,
|
||||||
type: widget.arguments.type,
|
type: widget.arguments.type,
|
||||||
);
|
);
|
||||||
} else {
|
} else if (index == 2) {
|
||||||
return PatientFiles(
|
return PatientFiles(
|
||||||
patientIndex: widget.arguments.selectedPatient!.idpatients,
|
patientIndex: widget.arguments.selectedPatient!.idpatients,
|
||||||
selectedPatient: widget.arguments.selectedPatient!,
|
selectedPatient: widget.arguments.selectedPatient!,
|
||||||
|
|
@ -103,6 +104,15 @@ class _PatientViewState extends State<PatientView> {
|
||||||
businessUser: widget.arguments.businessUser,
|
businessUser: widget.arguments.businessUser,
|
||||||
type: widget.arguments.type,
|
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,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue