patient manager change position of refresh button

This commit is contained in:
2024-09-18 10:09:19 +02:00
parent c415144e15
commit 7d1d2491d3

View File

@@ -230,10 +230,24 @@ class _PatientManagerState extends State<PatientManager> {
Widget patientQueue() { Widget patientQueue() {
return Column(mainAxisSize: MainAxisSize.max, children: [ return Column(mainAxisSize: MainAxisSize.max, children: [
//const SizedBox(height: 15), //const SizedBox(height: 15),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text( const Text(
"Waiting Room", "Waiting Room",
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
), ),
IconButton(
onPressed: () {
refreshQueue();
},
icon: const Icon(
Icons.refresh,
size: 25,
),
),
],
),
Divider(color: MzanziInnovationHub.of(context)!.theme.secondaryColor()), Divider(color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
const SizedBox(height: 10), const SizedBox(height: 10),
MIHDateField( MIHDateField(
@@ -364,15 +378,6 @@ class _PatientManagerState extends State<PatientManager> {
size: 35, size: 35,
), ),
), ),
IconButton(
onPressed: () {
refreshQueue();
},
icon: const Icon(
Icons.refresh,
size: 35,
),
),
], ],
); );
} }
@@ -407,8 +412,6 @@ class _PatientManagerState extends State<PatientManager> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final screenWidth = MediaQuery.of(context).size.width;
final screenHeight = MediaQuery.of(context).size.height;
return MIHLayoutBuilder( return MIHLayoutBuilder(
actionButton: getActionButton(), actionButton: getActionButton(),
header: getHeader(), header: getHeader(),