change layout to have waiting room on top

This commit is contained in:
2024-08-12 14:50:25 +02:00
parent aa87d76488
commit e707a078e4

View File

@@ -164,7 +164,7 @@ class _PatientManagerState extends State<PatientManager> {
width: w, width: w,
height: 600, height: 600,
child: Column(mainAxisSize: MainAxisSize.max, children: [ child: Column(mainAxisSize: MainAxisSize.max, children: [
const SizedBox(height: 15), //const SizedBox(height: 15),
const Text( const Text(
"Patient Search", "Patient Search",
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
@@ -293,7 +293,7 @@ class _PatientManagerState extends State<PatientManager> {
width: w, width: w,
height: 600, height: 600,
child: Column(mainAxisSize: MainAxisSize.max, children: [ child: Column(mainAxisSize: MainAxisSize.max, children: [
const SizedBox(height: 15), //const SizedBox(height: 15),
const Text( const Text(
"Waiting Room", "Waiting Room",
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
@@ -421,7 +421,10 @@ class _PatientManagerState extends State<PatientManager> {
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(), // color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
// ), // ),
// ), // ),
body: SizedBox( body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 15.0),
child: SizedBox(
width: double.infinity, width: double.infinity,
child: Wrap( child: Wrap(
spacing: 10.0, spacing: 10.0,
@@ -433,15 +436,17 @@ class _PatientManagerState extends State<PatientManager> {
children: [ children: [
SizedBox( SizedBox(
width: 660, width: 660,
child: patientSearch(screenWidth, screenHeight), child: patientQueue(screenWidth, screenHeight),
), ),
SizedBox( SizedBox(
width: 660, width: 660,
child: patientQueue(screenWidth, screenHeight), child: patientSearch(screenWidth, screenHeight),
), ),
], ],
), ),
), ),
),
),
); );
} }
} }