MixinNetwork / MixinNetwork/flutter-plugins

[desktop_webview_window] Webview doesn't work on macOS

Open
#337 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When I try to launch a webview window, it instead launches a copy of the main app, and when that tries to launch a webview window, it crashes.

Reproduce Steps

lib/main.dart:

import 'package:flutter/material.dart';
import 'package:desktop_webview_window/desktop_webview_window.dart';

void main(List<String> arguments) {
  runApp(
    MaterialApp(
      home: Scaffold(
        body: OutlinedButton(
          child: FlutterLogo(),
          onPressed: () {
            WebviewWindow.create().then((webview) {
              webview.launch('example.com');
            });
          },
        ),
      ),
    ),
  );
}

Run the app, press the button. Then, press the button on the new window that launched.

what it looks like
window on window

Version (please complete the following information):

  • Flutter Version: 3.22.0-31.0.pre.3
  • OS: macOS 14.4.1
  • plugin: desktop_webview_window

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 reproducing the issue on macOS 14.4.1 using the lib/main.dart example and the stated Flutter version. Then inspect the desktop_webview_window macOS launch path; done means WebviewWindow.create() opens the requested webview instead of another copy of the main app or a crashing window.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.