fix button alignment
This commit is contained in:
@@ -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,27 +299,29 @@ class _PatientDocumentsState extends State<PatientDocuments> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
MihButton(
|
Center(
|
||||||
onPressed: () {
|
child: MihButton(
|
||||||
if (_formKey.currentState!.validate()) {
|
onPressed: () {
|
||||||
submitDocUploadForm();
|
if (_formKey.currentState!.validate()) {
|
||||||
// uploadSelectedFile(selected);
|
submitDocUploadForm();
|
||||||
Navigator.pop(context);
|
// uploadSelectedFile(selected);
|
||||||
} else {
|
Navigator.pop(context);
|
||||||
MihAlertServices().formNotFilledCompletely(context);
|
} else {
|
||||||
}
|
MihAlertServices().formNotFilledCompletely(context);
|
||||||
},
|
}
|
||||||
buttonColor:
|
},
|
||||||
MzanziInnovationHub.of(context)!.theme.successColor(),
|
buttonColor:
|
||||||
width: 300,
|
MzanziInnovationHub.of(context)!.theme.successColor(),
|
||||||
child: Text(
|
width: 300,
|
||||||
"Add File",
|
child: Text(
|
||||||
style: TextStyle(
|
"Add File",
|
||||||
color: MzanziInnovationHub.of(context)!
|
style: TextStyle(
|
||||||
.theme
|
color: MzanziInnovationHub.of(context)!
|
||||||
.primaryColor(),
|
.theme
|
||||||
fontSize: 20,
|
.primaryColor(),
|
||||||
fontWeight: FontWeight.bold,
|
fontSize: 20,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user