Skip to content

Broken navigation stack when changing profile using settings menu #130

@doba16

Description

@doba16

Describe the bug

When using the settings menu to change the active profile, the navigation stack does not get cleaned, so that you can press the back button to get into the "previous" profile. But previous is not the real previous profile, the data that is displayed is the new profile, but it uses the screen of the previous profile. This is especially bad if one of these profiles is a listener and the other one is a story teller.

Reproduction

  1. Launch the app, log in and create two profiles. Let's name them "Profile A" (listener) and "Profile B" (story teller).
  2. Select "Profile A". You will see the "Profile A" name and the listener navigation at the bottom.
  3. Click the burger menu (top right) and select "Change Profile".
  4. Choose "Profile B". You will see the "Profile B" name and the story teller navigation at the bottom.
  5. Hit the back button 3 times.
  6. You will see the screen with "Profile B" as name and listener navigation bar at the bottom. But Profile B is story teller!

This effect also happens if both profiles are of the same type, but the navigation bar mismatch is not present then. But using different profiles visualizes the issue better, so I chose to use different types.

System Info

Flutter 3.19.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision abb292a07e (vor 10 Tagen) • 2024-02-20 14:35:05 -0800
Engine • revision 04817c99c9
Tools • Dart 3.3.0 • DevTools 2.31.1

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions