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,25 +421,30 @@ class _PatientManagerState extends State<PatientManager> {
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(), // color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
// ), // ),
// ), // ),
body: SizedBox( body: SingleChildScrollView(
width: double.infinity, child: Padding(
child: Wrap( padding: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 15.0),
spacing: 10.0, child: SizedBox(
runSpacing: 10.0, width: double.infinity,
direction: Axis.horizontal, child: Wrap(
alignment: WrapAlignment.center, spacing: 10.0,
runAlignment: WrapAlignment.center, runSpacing: 10.0,
crossAxisAlignment: WrapCrossAlignment.center, direction: Axis.horizontal,
children: [ alignment: WrapAlignment.center,
SizedBox( runAlignment: WrapAlignment.center,
width: 660, crossAxisAlignment: WrapCrossAlignment.center,
child: patientSearch(screenWidth, screenHeight), children: [
SizedBox(
width: 660,
child: patientQueue(screenWidth, screenHeight),
),
SizedBox(
width: 660,
child: patientSearch(screenWidth, screenHeight),
),
],
), ),
SizedBox( ),
width: 660,
child: patientQueue(screenWidth, screenHeight),
),
],
), ),
), ),
); );