Users are navigated to the Edit Profile screen once they click on the option on the sidebar app drawer.
Link - → {base url}/mgramseva/home/editProfile
- User can change their profile name, gender and email on this screen
- Click on the Save button triggers a Details Saved Successfully message on the screen and saves the changes to the profile.
Primary Files: punjab-mgramseva/EditProfile.dart at develop · egovernments/punjab-mgramseva
Fields | Validations |
---|---|
Name | r'^[a-zA-Z ]+$' |
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,}))$' |
End Point | Request Method | Request Info |
---|---|---|
/user/profile/_update |
POST |
"user": { |
Stack
1 → Home Screen. + Edit Profile Screen
Pop → Home Screen
Widgets utilised from Library
Widgets | File Path | Description |
---|---|---|
BuildTextField |
https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/widgets/TextFieldBuilder.dart | Text Field |
BottomButtonBar |
https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/widgets/BottonButtonBar.dart | Button |
RadioButtonField |
https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/widgets/RadioButtonFieldBuilder.dart | Radio Buttons for options |