fix: Window Size

This commit is contained in:
xkeyC 2024-06-16 12:03:37 +08:00
parent 6265acb2ad
commit 38a1ddab72
2 changed files with 2 additions and 2 deletions

View File

@ -171,8 +171,6 @@ class AppGlobalModel extends _$AppGlobalModel {
// init windows // init windows
windowManager.waitUntilReadyToShow().then((_) async { windowManager.waitUntilReadyToShow().then((_) async {
await windowManager.setTitle("SCToolBox"); await windowManager.setTitle("SCToolBox");
await windowManager.setSize(const Size(1280, 810));
await windowManager.setMinimumSize(const Size(1280, 810));
await windowManager.setSkipTaskbar(false); await windowManager.setSkipTaskbar(false);
await windowManager.show(); await windowManager.show();
if (Platform.isWindows) { if (Platform.isWindows) {

View File

@ -27,6 +27,8 @@ _initWindow() async {
TitleBarStyle.hidden, TitleBarStyle.hidden,
windowButtonVisibility: false, windowButtonVisibility: false,
); );
await windowManager.setSize(const Size(1280, 810));
await windowManager.setMinimumSize(const Size(1280, 810));
await windowManager.center(animate: true); await windowManager.center(animate: true);
} }