Closed 1124863805 closed 1 year ago
Well that's weird, can you provide an example code to reproduce the problem?
https://github.com/zezo357/flutter_meedu_videoplayer/tree/master/package/example
in macos Your official example can be reproduced
https://github.com/zezo357/flutter_meedu_videoplayer/tree/master/package/example
in macos Your official example can be reproduced
Will test and let you know, keep in mind I am busy these days, so when I have time I will test
Same here. The problem is the initMeeduPlayer()
call. Why it is setting window size?
Future<void> initWindowManagerIfNeeded() async {
if (UniversalPlatform.isDesktop) {
await windowManager.ensureInitialized();
WindowOptions windowOptions = const WindowOptions(
size: Size(1200, 700),
center: true,
);
windowManager.waitUntilReadyToShow(windowOptions, () async {
await windowManager.show();
await windowManager.focus();
});
}
}```
Same here. The problem is the
initMeeduPlayer()
call. Why it is setting window size?Future<void> initWindowManagerIfNeeded() async { if (UniversalPlatform.isDesktop) { await windowManager.ensureInitialized(); WindowOptions windowOptions = const WindowOptions( size: Size(1200, 700), center: true, ); windowManager.waitUntilReadyToShow(windowOptions, () async { await windowManager.show(); await windowManager.focus(); }); } }```
its because of the pip feature, we can add a boolean to disable it if not needed
Absolutely need :D I use auto window restoration that maintains the last window size
4.2.14 is released.
fisrt
then
The above is an example of using a plugin
If I use a third-party plugin and specify the window size, the above situation will still occur
such as
bitsdojo_window: ^0.1.5
doWhenWindowReady(() { const initialSize = Size(1000, 800); appWindow.minSize = initialSize; appWindow.size = initialSize; appWindow.alignment = Alignment.center; appWindow.show(); });
The size shown in Figure 2 will still appear, but it will return to normal next time it starts