Fixed to obey window size constraints on Windows

This commit is contained in:
Ashita Prasad
2023-12-12 09:01:35 +05:30
parent b7dedb28a4
commit 221b6b7cca

View File

@ -12,7 +12,7 @@ void main() async {
if (kIsLinux) {
await setupInitialWindow();
}
if (kIsMacOS) {
if (kIsMacOS || kIsWindows) {
var win = getInitialSize();
await setupWindow(sz: win.$1, off: win.$2);
}
@ -21,8 +21,4 @@ void main() async {
child: DashApp(),
),
);
if (kIsWindows) {
var win = getInitialSize();
await setupWindow(sz: win.$1, off: win.$2);
}
}