We usually add window button (minimized button, maximized button ..) to the root page. and hope these buttons work like the windows title bar (never disappears).
But if we Navigator.of(context).push() a new page, this page will have no these buttons. By the way, add this code
Column(
children: [
WindowTitleBarBox(
child: Row(
children: [
Expanded(child: MoveWindow()),
windowButtons,
],
),
),
Expanded(child: mainBody), // <-- the real content
],
)
to every page is really redundant.