If you create a RegularWindow without a preferred size no window is created on Windows and the following error shown on the terminal:
[FATAL:flutter/shell/platform/windows/host_window_regular.cc(19)] Check failed: preferred_size.has_preferred_view_size.
Example code:
final RegularWindowController controller = RegularWindowController();
RegularWindow(controller: controller);
Works if you add a size, i.e.:
final RegularWindowController controller = RegularWindowController(preferredSize: const Size(400, 300));
This works on Linux.
See https://github.com/robert-ancell/regular_window_no_preferred_size for a full example that shows this problem.
If you create a
RegularWindowwithout a preferred size no window is created on Windows and the following error shown on the terminal:Example code:
Works if you add a size, i.e.:
This works on Linux.
See https://github.com/robert-ancell/regular_window_no_preferred_size for a full example that shows this problem.