File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ void main() async {
1616 backgroundColor: Colors .transparent,
1717 skipTaskbar: false ,
1818 titleBarStyle: TitleBarStyle .hidden,
19+ windowButtonVisibility: false ,
1920 );
2021 windowManager.waitUntilReadyToShow (windowOptions, () async {
2122 await windowManager.show ();
Original file line number Diff line number Diff line change @@ -126,7 +126,10 @@ class WindowManager {
126126 }
127127 if (options? .title != null ) await setTitle (options! .title! );
128128 if (options? .titleBarStyle != null ) {
129- await setTitleBarStyle (options! .titleBarStyle! );
129+ await setTitleBarStyle (
130+ options! .titleBarStyle! ,
131+ windowButtonVisibility: options.windowButtonVisibility ?? true ,
132+ );
130133 }
131134
132135 if (callback != null ) {
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ class WindowOptions {
1515 this .skipTaskbar,
1616 this .title,
1717 this .titleBarStyle,
18+ this .windowButtonVisibility,
1819 });
1920
2021 final Size ? size;
@@ -27,4 +28,5 @@ class WindowOptions {
2728 final bool ? skipTaskbar;
2829 final String ? title;
2930 final TitleBarStyle ? titleBarStyle;
31+ final bool ? windowButtonVisibility;
3032}
You can’t perform that action at this time.
0 commit comments