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) {
|
||||
await setupInitialWindow();
|
||||
}
|
||||
if (kIsMacOS) {
|
||||
var win = getInitialSize();
|
||||
await setupWindow(sz: win.$1, off: win.$2);
|
||||
}
|
||||
runApp(
|
||||
const ProviderScope(
|
||||
child: DashApp(),
|
||||
),
|
||||
);
|
||||
if (kIsWindows || kIsMacOS) {
|
||||
if (kIsWindows) {
|
||||
var win = getInitialSize();
|
||||
await setupWindow(sz: win.$1, off: win.$2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user