From cac7155aaec7b69a84373abfa8d1ae19f4f4f160 Mon Sep 17 00:00:00 2001 From: Sand <40192108+keepgagaga@users.noreply.github.com> Date: Sun, 8 Oct 2023 20:39:27 +0800 Subject: [PATCH] add annotation for setAsFrameless method (#408) * add annotation for setAsFrameless method * add new annotation for setAsFrameless method * add new annotation for setAsFrameless method again --- lib/src/window_manager.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/window_manager.dart b/lib/src/window_manager.dart index 9b90872..9736a83 100644 --- a/lib/src/window_manager.dart +++ b/lib/src/window_manager.dart @@ -104,6 +104,7 @@ class WindowManager { await _channel.invokeMethod('ensureInitialized'); } + /// You can call this to remove the window frame (title bar, outline border, etc), which is basically everything except the Flutter view, also can call setTitleBarStyle(TitleBarStyle.normal) or setTitleBarStyle(TitleBarStyle.hidden) to restore it. Future setAsFrameless() async { await _channel.invokeMethod('setAsFrameless'); }