Open mekjolle opened 8 months ago
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())); }
When adding .setMoveable to "window manager" startup properties:
This works:
This doesn't work: