bitsdojo / bitsdojo_window

A Flutter package that makes it easy to customize and work with your Flutter desktop app window.
http://www.youtube.com/watch?v=bee2AHQpGK4
MIT License
815 stars 229 forks source link

example is not work #183

Closed luo10 closed 11 months ago

luo10 commented 2 years ago
image

this does not work as in the example, the button in the top left corner is not hidden...

mathewthe2 commented 2 years ago

Same problem on m1 using only the BDW_CUSTOM_FRAME flag.

When I add the BDW_HIDE_ON_STARTUP flag, however, nothing shows up and if I try to click the app from the dock the console says Lost connection to device.

appinteractive commented 2 years ago

There is a Pull-Request #184

@bitsdojo may that fix the problem?

@luo10 @mathewthe2 I use that package in combination with https://pub.dev/packages/flutter_acrylic and there is a method Window.hideWindowControls(); that does exactly that, maybe you can try that for now!?

maxd commented 1 year ago

I see such code that hide custom buttons for macOS.

@bitsdojo So, this issue isn't a bug, right?

Juliotati commented 1 year ago

@maxd There's no bug. The window control buttons on macOS are "not supposed to be touched", unless you have a reason to. Either we should them as they are to stay uniform to the platform specific.