mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
Fixed to obey window size constraints on Windows
This commit is contained in:
@ -12,7 +12,7 @@ void main() async {
|
|||||||
if (kIsLinux) {
|
if (kIsLinux) {
|
||||||
await setupInitialWindow();
|
await setupInitialWindow();
|
||||||
}
|
}
|
||||||
if (kIsMacOS) {
|
if (kIsMacOS || kIsWindows) {
|
||||||
var win = getInitialSize();
|
var win = getInitialSize();
|
||||||
await setupWindow(sz: win.$1, off: win.$2);
|
await setupWindow(sz: win.$1, off: win.$2);
|
||||||
}
|
}
|
||||||
@ -21,8 +21,4 @@ void main() async {
|
|||||||
child: DashApp(),
|
child: DashApp(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
if (kIsWindows) {
|
|
||||||
var win = getInitialSize();
|
|
||||||
await setupWindow(sz: win.$1, off: win.$2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user