-
-
Notifications
You must be signed in to change notification settings - Fork 250
Open
Labels
Description
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()));
}