MixinNetwork / MixinNetwork/flutter-plugins
[desktop_webview_window] not working within "runZonedGuarded"
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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