From c786e52341cbc9af42814d9294632c92a4b8da84 Mon Sep 17 00:00:00 2001 From: WinXaito Date: Tue, 28 Mar 2023 21:24:36 +0200 Subject: [PATCH 1/3] Load the example app with a bigger size for have a open navigation pane and do not center the window --- example/lib/main.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index ce0711faa..2ac99890e 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -51,9 +51,8 @@ void main() async { TitleBarStyle.hidden, windowButtonVisibility: false, ); - await windowManager.setSize(const Size(755, 545)); + await windowManager.setSize(const Size(1050, 545)); await windowManager.setMinimumSize(const Size(350, 600)); - await windowManager.center(); await windowManager.show(); await windowManager.setPreventClose(true); await windowManager.setSkipTaskbar(false); From 15f5b04ce90a721da5f31d711f72d8795e14dc48 Mon Sep 17 00:00:00 2001 From: WinXaito Date: Wed, 29 Mar 2023 13:53:15 +0200 Subject: [PATCH 2/3] Remove setSize, we use the size defined by windows runner --- example/lib/main.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 2ac99890e..3252f18ba 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -51,7 +51,6 @@ void main() async { TitleBarStyle.hidden, windowButtonVisibility: false, ); - await windowManager.setSize(const Size(1050, 545)); await windowManager.setMinimumSize(const Size(350, 600)); await windowManager.show(); await windowManager.setPreventClose(true); From d03dca58aafbe2cdf8ebb43e99b815ed53ef8426 Mon Sep 17 00:00:00 2001 From: WinXaito Date: Wed, 29 Mar 2023 13:55:58 +0200 Subject: [PATCH 3/3] Change the minSize width from 350 to 500 --- example/lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 3252f18ba..20e982828 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -51,7 +51,7 @@ void main() async { TitleBarStyle.hidden, windowButtonVisibility: false, ); - await windowManager.setMinimumSize(const Size(350, 600)); + await windowManager.setMinimumSize(const Size(500, 600)); await windowManager.show(); await windowManager.setPreventClose(true); await windowManager.setSkipTaskbar(false);