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

Maximize button problem #198

Open jinnyum opened 2 years ago

jinnyum commented 2 years ago

When double-clicking on the title bar, the maximize button UI does not change. When click the maximize button, the UI changes. However, even if maximize is released by dragging the title bar, the maximized UI state is not restored to its original state.

davi-sant commented 2 years ago

Ao clicar duas vezes na barra de título, a interface do usuário do botão maximizar não muda. Ao clicar no botão maximizar, a interface do usuário muda. No entanto, mesmo que maximizar seja liberado arrastando a barra de título, o estado maximizado da interface do usuário não será restaurado ao seu estado original.


Hello @jinnyum could you tell me on which platform the error is happening. || The actions, maximize by double clicking on the title bar is working correctly in windows 11.

jinnyum commented 2 years ago

Ao clicar duas vezes na barra de título, a interface do usuário do botão maximizar não muda. Ao clicar no botão maximizar, a interface do usuário muda. No entanto, mesmo que maximizar seja liberado arrastando a barra de título, o estado maximizado da interface do usuário não será restaurado ao seu estado original.

Hello @jinnyum could you tell me on which platform the error is happening. || The actions, maximize by double clicking on the title bar is working correctly in windows 11.

I am using windows 10 ( 21H2 )

Jappe02 commented 7 months ago

@jinnyum Are you still having this issue? It happens for me too.

Jappe02 commented 7 months ago

@jinnyum I got it fixed using polling. I'm continuously checking for changes of the isMaximized variable, and storing the last value. So I continuously check if the old value doesn't match the current one, and if it doesn't, I fire an event and set the old value to the new one. I'm currently using Timer.periodic with a 500ms delay, and it seems to work just fine.

jinnyum commented 6 months ago

@jinnyum I got it fixed using polling. I'm continuously checking for changes of the isMaximized variable, and storing the last value. So I continuously check if the old value doesn't match the current one, and if it doesn't, I fire an event and set the old value to the new one. I'm currently using Timer.periodic with a 500ms delay, and it seems to work just fine.

This is not a good solution.