fix scrolling overlay

This commit is contained in:
2024-08-08 11:42:53 +02:00
parent ab7c9209ac
commit 0509b826a7
2 changed files with 294 additions and 301 deletions

View File

@@ -156,9 +156,8 @@ class _AddPatientState extends State<AddPatient> {
} }
Widget displayForm() { Widget displayForm() {
return Padding( return SingleChildScrollView(
padding: const EdgeInsets.all(15.0), padding: const EdgeInsets.all(25.0),
child: SingleChildScrollView(
child: Column( child: Column(
children: [ children: [
Text( Text(
@@ -299,13 +298,11 @@ class _AddPatientState extends State<AddPatient> {
buttonText: "Add", buttonText: "Add",
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzanziInnovationHub.of(context)!.theme.secondaryColor(),
textColor: textColor: MzanziInnovationHub.of(context)!.theme.primaryColor(),
MzanziInnovationHub.of(context)!.theme.primaryColor(),
), ),
), ),
], ],
), ),
),
); );
} }

View File

@@ -354,9 +354,8 @@ class _EditPatientState extends State<EditPatient> {
} }
Widget displayForm() { Widget displayForm() {
return Padding( return SingleChildScrollView(
padding: const EdgeInsets.all(15.0), padding: const EdgeInsets.all(25.0),
child: SingleChildScrollView(
child: Column( child: Column(
children: [ children: [
Row( Row(
@@ -374,8 +373,7 @@ class _EditPatientState extends State<EditPatient> {
), ),
IconButton( IconButton(
icon: const Icon(Icons.delete), icon: const Icon(Icons.delete),
color: color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
alignment: Alignment.topRight, alignment: Alignment.topRight,
onPressed: () { onPressed: () {
deletePatientPopUp(); deletePatientPopUp();
@@ -515,13 +513,11 @@ class _EditPatientState extends State<EditPatient> {
buttonText: "Update", buttonText: "Update",
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzanziInnovationHub.of(context)!.theme.secondaryColor(),
textColor: textColor: MzanziInnovationHub.of(context)!.theme.primaryColor(),
MzanziInnovationHub.of(context)!.theme.primaryColor(),
), ),
), ),
], ],
), ),
),
); );
} }