MixinNetwork / MixinNetwork/flutter-plugins

[desktop_webview_window] listen to page finished loading

Open
#38 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I want to listen to the page loaded in the Webiew to parse its content
I get content by

final content = await webview.evaluateJavaScript(
                                 "document.documentElement.outerHTML.toString()");

but it prints
flutter: <html><head></head><body></body></html>
I know you have used Future.delay in your example but It is better to listen to the page loaded

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

Start by reading the desktop_webview_window API around evaluateJavaScript and how page navigation is reported. The issue is done when callers can observe page-finished loading and use that signal to retrieve populated page HTML instead of relying on a delay; no specific test or source file is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
desktop, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.