Merge pull request #5 from yaso-meth/my-patient-list-refresh-icon
add refresh icon to my patient list to check for updates
This commit is contained in:
commit
7d512d89a6
1 changed files with 24 additions and 3 deletions
|
|
@ -165,6 +165,13 @@ class _PatientManagerState extends State<PatientManager> {
|
||||||
checkforchange();
|
checkforchange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void refreshAccessList() {
|
||||||
|
setState(() {
|
||||||
|
patientAccessResults = MIHApiCalls.getPatientAccessListOfBusiness(
|
||||||
|
widget.arguments.business!.business_id);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
void checkforchange() {
|
void checkforchange() {
|
||||||
if (start == true) {
|
if (start == true) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|
@ -388,10 +395,24 @@ class _PatientManagerState extends State<PatientManager> {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Column(mainAxisSize: MainAxisSize.max, children: [
|
child: Column(mainAxisSize: MainAxisSize.max, children: [
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
const Text(
|
const Text(
|
||||||
"My Patient List",
|
"My Patient List",
|
||||||
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
|
IconButton(
|
||||||
|
iconSize: 20,
|
||||||
|
icon: const Icon(
|
||||||
|
Icons.refresh,
|
||||||
|
),
|
||||||
|
onPressed: () {
|
||||||
|
refreshAccessList();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
Divider(color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
|
Divider(color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
|
||||||
|
|
||||||
//spacer
|
//spacer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue