Skip to content

Commit

Permalink
fix: Window size blink while starting the window
Browse files Browse the repository at this point in the history
  • Loading branch information
Losses committed Nov 28, 2024
1 parent 1c80a65 commit 1c02e7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,14 @@ void main(List<String> arguments) async {
}
}

if (!Platform.isLinux) {
appWindow.size = windowSize;
}

if (Platform.isLinux) {
windowSize = windowSize / firstView.devicePixelRatio;
}

appWindow.size = windowSize;

mainLoop();
appWindow.show();

Expand Down

0 comments on commit 1c02e7c

Please sign in to comment.