Skip to content
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

Second screen overridden by route navigator #33

Open
jinqugan opened this issue Jan 12, 2023 · 0 comments
Open

Second screen overridden by route navigator #33

jinqugan opened this issue Jan 12, 2023 · 0 comments

Comments

@jinqugan
Copy link

Describe the bug
when i call displayManager.showSecondaryDisplay() the second screen will display but it will switch the screen to the first route i navigate

To Reproduce Scenario 1
Steps to reproduce the behavior:

  1. displayManager.showSecondaryDisplay() -> second screen display correct widget
  2. Navigator.pushReplacement to route A -> second screen will display widget route A
  3. Navigator.pushReplacement to route B -> now onward second screen will remain on route A
    • basically my second screen will auto switch to the first navigation route in my flutter app

To Reproduce Scenario 2

  1. Navigator.pushReplacement to route A -> second screen will display widget route A
  2. displayManager.showSecondaryDisplay() -> second screen display correct widget and then switch to route A
  3. Navigator.pushReplacement to route B -> now onward second screen will remain on route A
    • no matter i call second screen function before or after navigator, the second screen still will look for the first navigator route as second screen

Expected behavior
I need the second screen only display the widget i want instead of the display first route navigator i called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant