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

Window render bugged on windows 11 #263

Open
greggameplayer opened this issue Dec 18, 2022 · 1 comment
Open

Window render bugged on windows 11 #263

greggameplayer opened this issue Dec 18, 2022 · 1 comment

Comments

@greggameplayer
Copy link

Hello, to render my window in the code i've put that in my main function :

WidgetsFlutterBinding.ensureInitialized();

  await windowManager.ensureInitialized();

  String feedURL = 'https://update.gregsvc.fr/WinSpeakerSwitcher.xml';
  await autoUpdater.setFeedURL(feedURL);
  await autoUpdater.checkForUpdates();

  // For hot reload, `unregisterAll()` needs to be called.
  WindowOptions windowOptions = const WindowOptions(
    size: Size(800, 600),
    center: false,
    backgroundColor: Colors.transparent,
    skipTaskbar: false,
    titleBarStyle: TitleBarStyle.normal,
    title: 'WinSpeakerSwitcher',
  );
  windowManager.waitUntilReadyToShow(windowOptions, () async {
    await windowManager.show();
    await windowManager.focus();
  });

  await hotKeyManager.unregisterAll();
  runApp(const ProviderScope(child: MyApp()));

But the toolbar in the window is bugged it's render like that :
image
The title in the titlebar is blank only when the window is in focus state otherwise when the window is in the background the title renders correctly :
image

@kolyneh
Copy link

kolyneh commented Mar 21, 2023

Hi there, see if this would help: #301

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

2 participants