mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 08:53:43 +08:00
fix: Window Size
This commit is contained in:
parent
6265acb2ad
commit
38a1ddab72
@ -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) {
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user