fix button alignment

This commit is contained in:
2025-06-10 16:15:27 +02:00
parent e2573ee635
commit 3538f2454c

View File

@@ -238,6 +238,7 @@ class _PatientDocumentsState extends State<PatientDocuments> {
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
MihForm( MihForm(
formKey: _formKey, formKey: _formKey,
@@ -298,7 +299,8 @@ class _PatientDocumentsState extends State<PatientDocuments> {
], ],
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
MihButton( Center(
child: MihButton(
onPressed: () { onPressed: () {
if (_formKey.currentState!.validate()) { if (_formKey.currentState!.validate()) {
submitDocUploadForm(); submitDocUploadForm();
@@ -322,6 +324,7 @@ class _PatientDocumentsState extends State<PatientDocuments> {
), ),
), ),
), ),
),
], ],
), ),
], ],