Mzansi Personal Profile

This commit is contained in:
2025-03-17 10:12:44 +02:00
parent 98d3e00c53
commit 36652e42cf

View File

@@ -245,7 +245,9 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
} }
Widget getBody() { Widget getBody() {
return Column( return SafeArea(
child: SingleChildScrollView(
child: Column(
children: [ children: [
//displayProPic(), //displayProPic(),
MIHProfilePicture( MIHProfilePicture(
@@ -271,7 +273,8 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
editable: false, editable: false,
required: false, required: false,
onPressed: () async { onPressed: () async {
FilePickerResult? result = await FilePicker.platform.pickFiles( FilePickerResult? result =
await FilePicker.platform.pickFiles(
type: FileType.custom, type: FileType.custom,
allowedExtensions: ['jpg', 'png'], allowedExtensions: ['jpg', 'png'],
); );
@@ -349,13 +352,16 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
buttonText: "Update", buttonText: "Update",
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzanziInnovationHub.of(context)!.theme.secondaryColor(),
textColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), textColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
onTap: () { onTap: () {
submitForm(); submitForm();
}, },
), ),
), ),
], ],
),
),
); );
} }
} }