leanflutter / window_manager

This plugin allows Flutter desktop apps to resizing and repositioning the window.
https://pub.dev/packages/window_manager
MIT License
706 stars 195 forks source link

Unable to change the size in 0.4.0 #483

Closed JemmyWang94 closed 1 month ago

JemmyWang94 commented 2 months ago

In version 0.3.9 of pub, I was able to drag the mouse at the edge to change the size of the application, but after updating to 0.4.0, I was unable to change the size of the application by dragging the edge. Not change anything. just update to 0.4.0.

JemmyWang94 commented 2 months ago

await windowManager.ensureInitialized();

  WindowOptions windowOptions = const WindowOptions(
    center: true,
    backgroundColor: Colors.transparent,
    skipTaskbar: false,
    titleBarStyle: TitleBarStyle.hidden,
  );
  await windowManager.waitUntilReadyToShow(windowOptions, () async {
    await windowManager.show();
    await windowManager.focus();
  });
hare-siterwell commented 2 months ago

If titleBarStyle: TitleBarStyle.normal is set, it works fine. Did you update flutter 3.24?

JemmyWang94 commented 2 months ago

Yes, I have updated flutter 3.24, but it is the same result in 3.24 and 3.22.3.
When I set titleBarStyle: TitleBarStyle.normal, it works well, Thanks your advise. But I need to hide titlebar. It's amazing, why this phenomenon occurs?

clong1995 commented 2 months ago

me to

unvictory2 commented 1 month ago

I have the same issue, did you manage to fix it? I also want to keep the titlebar hidden, but the window moveable/resizeable. I tried await windowManager.setResizable(true); and await windowManager.setMovable(true); but it doesn't seem to work.

lijy91 commented 1 month ago

Fixed on https://github.com/leanflutter/window_manager/pull/482, Please upgrade to 0.4.2