make phone number field editable#804
Conversation
…ect into development_make_phone_editable
AhmedHanafy725
left a comment
There was a problem hiding this comment.
- Please add
edit iconso the user can know that he can edit the phone number - Prevent using the same old phone number
zaelgohary
left a comment
There was a problem hiding this comment.
- Search term color is not compatible with dark theme.
-
Search result is not accurate. I tried searching with eg and got the following result.
-
Also, notice at the bottom of the page, an overflow happens.
-
Padding all should be increased in the dialogue
- While editing the phone, the username and icon shows at the bottom again. Maybe we can check a better UI for this?
|
As for the overflow, I opened an issue for it here |
app/lib/widgets/phone_widget.dart
Outdated
| child: Padding( | ||
| padding: const EdgeInsets.symmetric(horizontal: 16), | ||
| child: Text( | ||
| 'Changing your phone will require you to go through the phone verification process again.', |
There was a problem hiding this comment.
There was a problem hiding this comment.
- All applied except the space under
Cancelbutton, It's a custom dialog used everywhere. They should be all consistent.
|
The phone number is unique per app ? |
|
|
I think we can find a better package for the mobile field. If it is not in this PR, can we open an issue for it?
I understand this is the KYC verification, but the UI feels repetitive. Perhaps we could open an issue to explore a better design? One idea could be removing this section and adding a 'Not verified' label next to the username at the top. |
zaelgohary
left a comment
There was a problem hiding this comment.
Adding a negative transform to the action buttons and changing the height of the dialogue will fix the spaces issue as shown below.
threefold_connect/app/lib/widgets/phone_widget.dart
Lines 170 to 178 in ef2dcf1
Transform.translate(
offset: const Offset(0, -20),
child:
Row(children: [
TextButton(
child: const Text(
'Cancel',
),
onPressed: () {
Navigator.pop(context);
}),
if (valid)
TextButton(onPressed: verifyButton, child: const Text('Add'))
],)
),
zaelgohary
left a comment
There was a problem hiding this comment.
I tried verifying with the old phone and no error msg appeared.
|
Lets add these test scenarios:
|
…ect into development_make_phone_editable
|
zaelgohary
left a comment
There was a problem hiding this comment.
I still don't see an error message when the old phone number is the same as the new one.
document_6039827747461670918.mp4
Please disregard this comment; I forgot to pull the latest changes. It's working fine now. |
…ect into development_make_phone_editable













Changes
Related Issues
Tested Scenarios
2024-12-22.15.49.57.mp4
2024-12-22.15.50.41.mp4
2024-12-22.15.51.09.mp4