From 95b850f7ab05e389a96a8b92b69f56b8c25dcb56 Mon Sep 17 00:00:00 2001 From: yaso Date: Thu, 7 Nov 2024 10:14:28 +0200 Subject: [PATCH] change refresh Icon size from 25 to 20 --- .../patient_profile/patient_manager.dart | 110 +++++++++++++----- 1 file changed, 82 insertions(+), 28 deletions(-) diff --git a/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_manager.dart b/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_manager.dart index f34a056e..d5ae656f 100644 --- a/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_manager.dart +++ b/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_manager.dart @@ -101,7 +101,7 @@ class _PatientManagerState extends State { style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), ), IconButton( - iconSize: 25, + iconSize: 20, icon: const Icon( Icons.refresh, ), @@ -504,37 +504,91 @@ class _PatientManagerState extends State { return MIHHeader( headerAlignment: MainAxisAlignment.end, headerItems: [ - IconButton( - onPressed: () { - setState(() { - _selectedIndex = 0; - }); - }, - icon: const Icon( - Icons.people, - size: 35, + //============ Waiting Room ================ + Visibility( + visible: _selectedIndex != 0, + child: IconButton( + onPressed: () { + setState(() { + _selectedIndex = 0; + }); + }, + icon: const Icon( + Icons.people, + size: 35, + ), ), ), - IconButton( - onPressed: () { - setState(() { - _selectedIndex = 1; - }); - }, - icon: const Icon( - Icons.check_box_outlined, - size: 35, + Visibility( + visible: _selectedIndex == 0, + child: IconButton.filled( + onPressed: () { + setState(() { + _selectedIndex = 0; + }); + }, + icon: const Icon( + Icons.people, + size: 35, + ), ), ), - IconButton( - onPressed: () { - setState(() { - _selectedIndex = 2; - }); - }, - icon: const Icon( - Icons.search, - size: 35, + //============ My Patient List ================ + Visibility( + visible: _selectedIndex != 1, + child: IconButton( + onPressed: () { + setState(() { + _selectedIndex = 1; + }); + }, + icon: const Icon( + Icons.check_box_outlined, + size: 35, + ), + ), + ), + Visibility( + visible: _selectedIndex == 1, + child: IconButton.filled( + onPressed: () { + setState(() { + _selectedIndex = 1; + }); + }, + icon: const Icon( + Icons.check_box_outlined, + size: 35, + ), + ), + ), + //============ Patient Lookup ================ + Visibility( + visible: _selectedIndex != 2, + child: IconButton( + onPressed: () { + setState(() { + _selectedIndex = 2; + }); + }, + icon: const Icon( + Icons.search, + size: 35, + ), + ), + ), + Visibility( + visible: _selectedIndex == 2, + child: IconButton.filled( + onPressed: () { + setState(() { + _selectedIndex = 2; + }); + }, + icon: const Icon( + Icons.search, + size: 35, + ), ), ), ],