window_manager
window_manager copied to clipboard
[Windows] No implementation found for method setMovable on channel window_manager
When adding .setMoveable to "window manager" startup properties:
This works:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await windowManager.ensureInitialized();
WindowOptions windowOptions = const WindowOptions(
size: Size(1920, 1080),
center: true,
backgroundColor: Colors.transparent,
skipTaskbar: false,
windowButtonVisibility: false,
);
windowManager.waitUntilReadyToShow(windowOptions, () async {
await windowManager.show();
await windowManager.focus();
await windowManager.maximize();
await windowManager.setMaximizable(false);
await windowManager.setResizable(false);
});
runApp(const ProviderScope(child: MyApp()));
}
This doesn't work:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await windowManager.ensureInitialized();
WindowOptions windowOptions = const WindowOptions(
size: Size(1920, 1080),
center: true,
backgroundColor: Colors.transparent,
skipTaskbar: false,
windowButtonVisibility: false,
);
windowManager.waitUntilReadyToShow(windowOptions, () async {
await windowManager.show();
await windowManager.focus();
await windowManager.maximize();
await windowManager.setMaximizable(false);
await windowManager.setResizable(false);
await windowManager.setMovable(false);
});
runApp(const ProviderScope(child: MyApp()));
}