remove temp bio

This commit is contained in:
2025-07-02 13:27:44 +02:00
parent 32eb24ddf5
commit 57817038f4

View File

@@ -70,8 +70,8 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
Future<void> submitForm() async { Future<void> submitForm() async {
// print("============\nsubmiit form\n================="); // print("============\nsubmiit form\n=================");
if (widget.arguments.signedInUser.username != usernameController.text) { if (widget.arguments.signedInUser.username != usernameController.text) {
bool isUsernameUnique = bool isUsernameUnique = await MihUserServices.isUsernameUnique(
await MihUserServices.isUsernameUnique(usernameController.text, context); usernameController.text, context);
print("isUsernameUnique: $isUsernameUnique"); print("isUsernameUnique: $isUsernameUnique");
if (isUsernameUnique == false) { if (isUsernameUnique == false) {
notUniqueAlert(); notUniqueAlert();
@@ -112,31 +112,31 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
} }
Future<void> updateUserApiCall() async { Future<void> updateUserApiCall() async {
int responseCode = await MihUserServices().updateUser( int responseCode = await MihUserServices().updateUser(
widget.arguments.signedInUser, widget.arguments.signedInUser,
fnameController.text, fnameController.text,
lnameController.text, lnameController.text,
usernameController.text, usernameController.text,
proPicController.text, proPicController.text,
businessUser, businessUser,
context, context,
);
if (responseCode == 200) {
Navigator.of(context).pop();
Navigator.of(context).pop();
Navigator.of(context).pop();
Navigator.of(context).pushNamed(
'/',
arguments: AuthArguments(
true,
false,
),
); );
if (responseCode == 200) { String message = "Your information has been updated successfully!";
Navigator.of(context).pop(); successPopUp(message);
Navigator.of(context).pop(); } else {
Navigator.of(context).pop(); internetConnectionPopUp();
Navigator.of(context).pushNamed( }
'/',
arguments: AuthArguments(
true,
false,
),
);
String message = "Your information has been updated successfully!";
successPopUp(message);
} else {
internetConnectionPopUp();
}
} }
Future<void> deleteFileApiCall(String filename) async { Future<void> deleteFileApiCall(String filename) async {
@@ -438,31 +438,32 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
), ),
), ),
), ),
const SizedBox(height: 10.0), // const SizedBox(height: 10.0),
Center( // Center(
child: Text( // child: Text(
"*DEMO TEXT* This would be the bio of the user telling us a bit about themself and let. This would be the bio of the user telling us a bit about themself and let. This would be the bio of the user telling us a bit about themself", // "*DEMO TEXT* This would be the bio of the user telling us a bit about themself and let. This would be the bio of the user telling us a bit about themself and let. This would be the bio of the user telling us a bit about themself",
textAlign: TextAlign.center, // textAlign: TextAlign.center,
style: TextStyle( // style: TextStyle(
fontSize: 15, // fontSize: 15,
fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! // color: MzanziInnovationHub.of(context)!
.theme // .theme
.secondaryColor(), // .secondaryColor(),
), // ),
), // ),
), // ),
const SizedBox(height: 30.0), const SizedBox(height: 30.0),
Center( Center(
child: MihButton( child: MihButton(
onPressed: () { onPressed: () {
// Connect with the user // Connect with the user
editProfileWindow(width);
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzanziInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Connect", "Edit Profile",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzanziInnovationHub.of(context)!
.theme .theme