We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65be22 commit a9411c0Copy full SHA for a9411c0
src/client/gui/lib/main.dart
@@ -36,11 +36,13 @@ void main() async {
36
return screen?.frame.size;
37
});
38
39
- final windowSize = (screenSize != null &&
40
- screenSize.width >= 1600 &&
41
- screenSize.height >= 900)
+ final windowSize = (screenSize != null)
+ ? (screenSize.width >= 1600 && screenSize.height >= 900)
42
? const Size(1400, 822) // For screens 1600x900 or larger
43
- : const Size(750, 450); // Default window size
+ : (screenSize.width >= 1280 && screenSize.height >= 720)
+ ? const Size(1024, 576) // For screens 1280x720 or larger
44
+ : const Size(750, 450) // Default window size
45
+ : const Size(750, 450); // Default window size if screenSize is null
46
47
await windowManager.ensureInitialized();
48
0 commit comments