mirror of
https://github.com/foss42/apidash.git
synced 2025-09-20 00:49:39 +08:00
Fix for macOS
This commit is contained in:
@ -12,12 +12,16 @@ void main() async {
|
|||||||
if (kIsLinux) {
|
if (kIsLinux) {
|
||||||
await setupInitialWindow();
|
await setupInitialWindow();
|
||||||
}
|
}
|
||||||
|
if (kIsMacOS) {
|
||||||
|
var win = getInitialSize();
|
||||||
|
await setupWindow(sz: win.$1, off: win.$2);
|
||||||
|
}
|
||||||
runApp(
|
runApp(
|
||||||
const ProviderScope(
|
const ProviderScope(
|
||||||
child: DashApp(),
|
child: DashApp(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
if (kIsWindows || kIsMacOS) {
|
if (kIsWindows) {
|
||||||
var win = getInitialSize();
|
var win = getInitialSize();
|
||||||
await setupWindow(sz: win.$1, off: win.$2);
|
await setupWindow(sz: win.$1, off: win.$2);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user