You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
════════ Exception caught by Flutter framework ═════════════════════════════════
The following MissingPluginException was thrown:
MissingPluginException(No implementation found for method ensureInitialized on channel window_manager_plus)
When the exception was thrown, this was the stack:
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
platform_channel.dart:332
<asynchronous suspension>
#1 WindowManagerPlus.ensureInitialized (package:window_manager_plus/src/window_manager.dart:283:5)
window_manager.dart:283
<asynchronous suspension>
#2 _setDesktopWindow (package:super_up/main.dart:172:3)
main.dart:172
<asynchronous suspension>
#3 main.<anonymous closure> (package:super_up/main.dart:35:7)
main.dart:35
<asynchronous suspension>
════════════════════════════════════════════════════════════════════════════════
code example
Future<void> _setDesktopWindow(List<String> args) async {
// await the initialization of the plugin.
// Here is an example of how to use ensureInitialized in the main function:
await WindowManagerPlus.ensureInitialized(
args.isEmpty ? 0 : int.tryParse(args[0]) ?? 0);
// Now you can use the plugin, such as WindowManagerPlus.current
WindowOptions windowOptions = WindowOptions(
minimumSize: const Size(800, 600),
size: const Size(1500, 1000),
backgroundColor: Colors.transparent,
skipTaskbar: true,
title: SConstants.appName,
titleBarStyle: VPlatforms.isWindows ? null : TitleBarStyle.hidden,
fullScreen: false,
);
WindowManagerPlus.current.waitUntilReadyToShow(windowOptions, () async {
await WindowManagerPlus.current.center();
await WindowManagerPlus.current.show();
await WindowManagerPlus.current.focus();
});
}
Hi . im just follow document and get this issue
code example
The text was updated successfully, but these errors were encountered: