bitsdojo_window
bitsdojo_window copied to clipboard
prevent exception when app run in mobile platform
trafficstars
i think because this plugin made only for desktop, you can handle UnimplementedError for mobile platforms
currently we must check platform
if(defaultTargetPlatform == TargetPlatform.macOS || defaultTargetPlatform == TargetPlatform.windows || defaultTargetPlatform == TargetPlatform.linux) {
doWhenWindowReady(() {
final initialSize = Size(600, 450);
appWindow.minSize = initialSize;
appWindow.size = initialSize;
appWindow.alignment = Alignment.center;
appWindow.show();
});
}
Thank you for reporting. Added to my list.
@bitsdojo please is this issue in the scope to be fixed?