Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] No implementation found for method setMovable on channel window_manager #442

Open
mekjolle opened this issue Mar 5, 2024 · 0 comments

Comments

@mekjolle
Copy link

mekjolle commented Mar 5, 2024

When adding .setMoveable to "window manager" startup properties:

image

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()));
}
@mekjolle mekjolle changed the title No implementation found for method setMovable on channel window_manager (Windows) No implementation found for method setMovable on channel window_manager Mar 5, 2024
@mekjolle mekjolle changed the title (Windows) No implementation found for method setMovable on channel window_manager [Windows] No implementation found for method setMovable on channel window_manager Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant