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