Skip to content

Second screen overridden by route navigator #33

@jinqugan

Description

@jinqugan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions