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

View File

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