flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[desktop_webview_window] not working within "runZonedGuarded"

Open j0chn1 opened this issue 2 years ago • 1 comments

Hey there, I do not know If this is a bug or if you want to handle this as one or can even handle this but: When running the app zoneguarded and your main part is within this zone, the webview opens but the whole app freezes. This freezes:

void main(List<String> args) async { 
  runZonedGuarded(() async {
  if (runWebViewTitleBarWidget(args)) {
    return;
  }
  WidgetsFlutterBinding.ensureInitialized();
    await initializeApp();
    runApp(await myApp()); 

this not:

void main(List<String> args) async { 
  if (runWebViewTitleBarWidget(args)) {
    return;
  }
  WidgetsFlutterBinding.ensureInitialized();
  runZonedGuarded(() async {
    await initializeApp();
    runApp(await myApp()); 

j0chn1 avatar Mar 28 '22 20:03 j0chn1

I am sorry. I entered the wrong plugin. It is [desktop_webview_window] not [desktop_multi_window].

j0chn1 avatar Mar 30 '22 10:03 j0chn1