@@ -218,6 +218,10 @@ abstract class RegularWindowController extends BaseWindowController {
218218 /// The [title] argument configures the window's initial title.
219219 /// If omitted, some platforms might fall back to the app's name.
220220 ///
221+ /// The [decorated] argument configures whether the window has decorations
222+ /// such as title bar, borders, etc. If false, the user should provide their
223+ /// own decorations.
224+ ///
221225 /// The [delegate] argument can be used to listen to the window's
222226 /// lifecycle. For example, it can be used to save state before
223227 /// a window is closed.
@@ -228,6 +232,7 @@ abstract class RegularWindowController extends BaseWindowController {
228232 Size ? preferredSize,
229233 BoxConstraints ? preferredConstraints,
230234 String ? title,
235+ bool decorated = true ,
231236 RegularWindowControllerDelegate ? delegate,
232237 }) {
233238 if (! isWindowingEnabled) {
@@ -244,6 +249,7 @@ abstract class RegularWindowController extends BaseWindowController {
244249 preferredSize: preferredSize,
245250 preferredConstraints: preferredConstraints,
246251 title: title,
252+ decorated: decorated,
247253 );
248254 }
249255
@@ -505,6 +511,10 @@ abstract class DialogWindowController extends BaseWindowController {
505511 /// The [title] argument configures the window's initial title.
506512 /// If omitted, some platforms might fall back to the app's name.
507513 ///
514+ /// The [decorated] argument configures whether the window has decorations
515+ /// such as title bar, borders, etc. If false, the user should provide their
516+ /// own decorations.
517+ ///
508518 /// The [delegate] argument can be used to listen to the window's
509519 /// lifecycle. For example, it can be used to save state before
510520 /// a window is closed.
@@ -515,6 +525,7 @@ abstract class DialogWindowController extends BaseWindowController {
515525 BoxConstraints ? preferredConstraints,
516526 BaseWindowController ? parent,
517527 String ? title,
528+ bool decorated = true ,
518529 DialogWindowControllerDelegate ? delegate,
519530 }) {
520531 WidgetsFlutterBinding .ensureInitialized ();
@@ -524,6 +535,7 @@ abstract class DialogWindowController extends BaseWindowController {
524535 preferredSize: preferredSize,
525536 preferredConstraints: preferredConstraints,
526537 title: title,
538+ decorated: decorated,
527539 parent: parent,
528540 );
529541 }
@@ -1152,6 +1164,7 @@ abstract class WindowingOwner {
11521164 Size ? preferredSize,
11531165 BoxConstraints ? preferredConstraints,
11541166 String ? title,
1167+ bool decorated = true ,
11551168 });
11561169
11571170 /// Creates a [DialogWindowController] with the provided properties.
@@ -1168,6 +1181,7 @@ abstract class WindowingOwner {
11681181 BoxConstraints ? preferredConstraints,
11691182 BaseWindowController ? parent,
11701183 String ? title,
1184+ bool decorated = true ,
11711185 });
11721186
11731187 /// Creates a [TooltipWindowController] with the provided properties.
@@ -1251,6 +1265,7 @@ class _WindowingOwnerUnsupported extends WindowingOwner {
12511265 Size ? preferredSize,
12521266 BoxConstraints ? preferredConstraints,
12531267 String ? title,
1268+ bool decorated = true ,
12541269 }) {
12551270 throw UnsupportedError (errorMessage);
12561271 }
@@ -1262,6 +1277,7 @@ class _WindowingOwnerUnsupported extends WindowingOwner {
12621277 BoxConstraints ? preferredConstraints,
12631278 BaseWindowController ? parent,
12641279 String ? title,
1280+ bool decorated = true ,
12651281 }) {
12661282 throw UnsupportedError (errorMessage);
12671283 }
0 commit comments