Fix for macOS

This commit is contained in:
Ankit Mahato
2023-12-12 02:20:04 +05:30
parent d7778e31a9
commit b7dedb28a4

View File

@ -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);
} }