Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Feature Request]: updating user name in profile page #50
This PR introduces the feature of displaying the user's name on the profile screen after they log in or sign up. Previously, the app was using a static name on the profile screen. Now, the actual name of the user (retrieved from Firebase) is displayed after login and sign-up, ensuring a more personalized experience.
Changes Made:
Implemented functionality in the AuthCubit to fetch user data (including the name) after login or sign-up.
The HomePage now dynamically displays the user's name passed from the AuthCubit instead of a static value.
Stored the user data in SharedPreferences to maintain the user's session and easily access the name across screens.
Testing:
Verified that the correct name is displayed after login and sign-up.
Checked that the name persists between app sessions using SharedPreferences.
Additional Notes:
This feature improves user experience by displaying personalized information on the profile screen.
WhatsApp.Video.2024-10-13.at.15.52.37_0b669454.mp4