flutter-plugins
flutter-plugins copied to clipboard
[desktop_multi_window] Error: main window already exists
Hi guys!
I'm having an issue and it turns out that when creating a new window it says: Error: main window already exists, any ideas of why this is happening?
Thanks for the help!
A clear and concise description of what the bug is.
Reproduce Steps
Steps to reproduce the behaviour:
- Just when creating the window following the example it says, Error: main window already exists.
- Flutter Version: v3.16.1
- OS: Windows
- plugin: desktop_multi_window 0.2.0
Contrary to my prior comment, registering DesktopMultiWindowPlugin on sub-windows does make a difference
When trying to send commands from sub to main window, MissingPluginException is thrown
- recommendation: manually register each plugin in sub-window except for DesktopMultiWindowPlugin https://github.com/MixinNetwork/flutter-plugins/issues/137#issuecomment-1925410276
- will get rid of this error message as well