You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
Link. → {base url}/mgramseva/home/editProfile.
User will be Landed/Navigated on this screen on clicking the option of Edit Profile in the Side Bar app Drawer.
User Interaction on Screen
User can change their profile name , gender and email on this screen
Clicking on Save button a nudge message with ‘Details Saved Successfully’ will appear and will save the changes to your profile.
File Path
Primary Files: https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/Profile/EditProfile.dart
Field Validations
SL | Fileds | Validations |
---|
1 | Name | r'^[a-zA-Z ]+$'
|
2 | Email ID | r'^$|^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$'
|
API details
SL | End Point | Request Method | Request Info |
---|
1 | /user/profile/_update
| POST
| "user": { "id": {}, "userName": {}, "salutation": null, "name": {}, "gender": {}, "mobileNumber": "9191919146", "emailId": {}, "altContactNumber": null, "pan": null, "aadhaarNumber": null, "permanentAddress": null, "permanentCity": null, "permanentPinCode": null, "correspondenceAddress": null, "correspondenceCity": null, "correspondencePinCode": null, "active": true, "locale": null, "type": "EMPLOYEE", "accountLocked": false, "accountLockedDate": 0, "fatherOrHusbandName": null, "relationship": null, "signature": null, "bloodGroup": null, "photo": null, "identificationMark": null, "createdBy": {}, "lastModifiedBy": {}, "tenantId": {}, "roles": [ {} ], } |
Stack
1 → Home Screen. + Edit Profile Screen.
Pop → Home Screen.
Widgets Utilised from Library
Add Comment