-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/1026 Android back gesture should follow navigation history #1056
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-ce que ce serait possible d'ajouter des cas de tests pour navigation_service.dart? À part de ça, tout me semble beau.
Bonne idée, ça ne devrait pas être trop compliqué à intégrer. Je vais checker ça. |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testé aussi sur ios, pas d'impact sur la navigation
Closes: #1026
📖 Description
This PR addresses the navigation issue on Android where the back button and back gesture navigation were not functioning as expected. Previously, these actions would always return the user to the dashboard, regardless of the navigation history. This fix ensures that the user is returned to the previous screen in their navigation stack. The back button should always take you back to the screen you were just on.
Also, this PR eliminates duplicate routes in the navigation history. This means that if users spam two tabs repeatedly, they will not need to click the back button multiple times to go back to previous routes (see the 2nd video below for a demo).
🧪 How Has This Been Tested?
☑️ Checklist before requesting a review
version: Major
,version: Minor
orversion: Patch
.🖼️ Screenshots (if useful):
Back button navigation demo:
demo_back_button_nav.mp4
Navigation when user clicks same tabs multiple times:
demo_dupe_back_button_nav.mp4
Navigation with back gesture:
demo_back_gesture_nav.mp4