leanflutter / window_manager

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

Unable to change the size in 0.4.0 #483

Closed JemmyWang94 closed 3 months ago

JemmyWang94 commented 3 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 3 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 3 months ago

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

JemmyWang94 commented 3 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 3 months ago

me to

unvictory2 commented 3 months 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 3 months ago

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