MixinNetwork / MixinNetwork/flutter-plugins

[desktop_webview_window] not working within "runZonedGuarded"

Open
#86 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

desktop_webview_window
Dominant language
C
Stars
512
Forks
292
Avg merge
15h 8m
Merged PRs (30d)
7

Description

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()); 

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the freeze using the two main-function arrangements shown, focusing on runWebViewTitleBarWidget and the runZonedGuarded boundary. Compare the working and freezing startup paths, then verify that opening the webview no longer freezes when the application runs inside runZonedGuarded.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.