change refresh Icon size from 25 to 20

This commit is contained in:
2024-11-07 10:14:28 +02:00
parent 83994ff199
commit 95b850f7ab

View File

@@ -101,7 +101,7 @@ class _PatientManagerState extends State<PatientManager> {
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
), ),
IconButton( IconButton(
iconSize: 25, iconSize: 20,
icon: const Icon( icon: const Icon(
Icons.refresh, Icons.refresh,
), ),
@@ -504,7 +504,10 @@ class _PatientManagerState extends State<PatientManager> {
return MIHHeader( return MIHHeader(
headerAlignment: MainAxisAlignment.end, headerAlignment: MainAxisAlignment.end,
headerItems: [ headerItems: [
IconButton( //============ Waiting Room ================
Visibility(
visible: _selectedIndex != 0,
child: IconButton(
onPressed: () { onPressed: () {
setState(() { setState(() {
_selectedIndex = 0; _selectedIndex = 0;
@@ -515,7 +518,25 @@ class _PatientManagerState extends State<PatientManager> {
size: 35, size: 35,
), ),
), ),
IconButton( ),
Visibility(
visible: _selectedIndex == 0,
child: IconButton.filled(
onPressed: () {
setState(() {
_selectedIndex = 0;
});
},
icon: const Icon(
Icons.people,
size: 35,
),
),
),
//============ My Patient List ================
Visibility(
visible: _selectedIndex != 1,
child: IconButton(
onPressed: () { onPressed: () {
setState(() { setState(() {
_selectedIndex = 1; _selectedIndex = 1;
@@ -526,7 +547,25 @@ class _PatientManagerState extends State<PatientManager> {
size: 35, size: 35,
), ),
), ),
IconButton( ),
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: () { onPressed: () {
setState(() { setState(() {
_selectedIndex = 2; _selectedIndex = 2;
@@ -537,6 +576,21 @@ class _PatientManagerState extends State<PatientManager> {
size: 35, size: 35,
), ),
), ),
),
Visibility(
visible: _selectedIndex == 2,
child: IconButton.filled(
onPressed: () {
setState(() {
_selectedIndex = 2;
});
},
icon: const Icon(
Icons.search,
size: 35,
),
),
),
], ],
); );
} }