VNAPNIC / presentation-displays

The flutter plugin supports running on two screens. It's basically a tablet connected to another screen via an HDMI or Wireless
https://pub.dev/packages/presentation_displays
BSD 2-Clause "Simplified" License
67 stars 66 forks source link

Second screen overridden by route navigator #33

Open jinqugan opened 1 year ago

jinqugan commented 1 year ago

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.

SimLscd commented 1 month ago

Got same problem did you find a solution ?