Open j0chn1 opened 3 years ago
Works pretty nice. Can also wrap it in MoveWindow in flexibleSpace to make the whole AppBar draggable. Can't drag the window under the tile text though.
Me neither, I mentioned it in https://github.com/bitsdojo/bitsdojo_window/issues/91
Figgured out a workaround, proabably easier way to do this. Pretty new to flutter. Tried to get it to work using the Stack widget with MoveWindow but didn't get that to work so I just looked at the code in MoveWindow and just copied it to the title in the AppBar 😄
title: GestureDetector(
behavior: HitTestBehavior.translucent,
onPanStart: (details) {
appWindow.startDragging();
},
onDoubleTap: () => appWindow.maximizeOrRestore(),
child: Text(widget.title)),
),
Hey, I wanted to use an AppBar to display my apps name. So I created one and added your WindowBorder to the body. It ended up having the AppBar above the windowbuttons.
So I just tried to put your WindowBorder to the appbar.
That works pretty good.
Additionally it fixed an endless exception throwing of my MultiSplitView. Maybe you want to add that to your README.