When Navigator push a new page, the root page's window buttons disappears
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.
Hey @sleepreading. Can you add code from main.dart file. I wanna see how you handle navigation. Then suggest a workaround that worked for me.
I somehow missed this question but this is a great idea and I should add an example app that uses navigation.
@bitsdojo Can I create one with a simple onGenerateRoute and create a PR for flutter windows?
Sounds good!
I was wondering if anyone would be interested in an example using go_router?
Why not? 😅 Someone will want to use it with go_router. It's always great to tackle every avenue IMO!
@bitsdojo #206 done here
It really sucks!