Skip to content

Commit 1c02e7c

Browse files
committed
fix: Window size blink while starting the window
1 parent 1c80a65 commit 1c02e7c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/main.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,14 @@ void main(List<String> arguments) async {
181181
}
182182
}
183183

184+
if (!Platform.isLinux) {
185+
appWindow.size = windowSize;
186+
}
187+
184188
if (Platform.isLinux) {
185189
windowSize = windowSize / firstView.devicePixelRatio;
186190
}
187191

188-
appWindow.size = windowSize;
189-
190192
mainLoop();
191193
appWindow.show();
192194

0 commit comments

Comments
 (0)