desktop_webview_linux 0.1.4 copy "desktop_webview_linux: ^0.1.4" to clipboard
desktop_webview_linux: ^0.1.4 copied to clipboard

PlatformLinux

Webview on Linux using webkit2gtk. Linux implementation of desktop_webview_window.

desktop_webview_linux #

pub version pub likes dart style Star on Github Last commit on Github

Linux-only package split from desktop_webview_window.

Usage #

import 'package:desktop_webview_linux/desktop_webview_linux.dart';

final webview = await WebviewWindow.create();
webview.launch('https://example.com');

Title bar setup #

To show the webview title bar on Linux, handle the title bar isolate before starting your app:

import 'dart:io';

import 'package:desktop_webview_linux/desktop_webview_linux.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';

void main(List<String> args) async {
  WidgetsFlutterBinding.ensureInitialized();

  // Required to show webview title bar.
  if (!kIsWeb && Platform.isLinux && runWebViewTitleBarWidget(args)) {
    return;
  }

  runApp(MyApp());
}

Linux dependencies #

Debian / Ubuntu:

sudo apt install \
  libwebkit2gtk-4.1-0 \
  libwebkit2gtk-4.1-dev \
  libsoup-3.0-0 \
  libsoup-3.0-dev

Fedora / RPM:

sudo dnf install \
  webkit2gtk4.1 \
  webkit2gtk4.1-devel \
  libsoup3 \
  libsoup3-devel
2
likes
160
points
201
downloads

Documentation

API reference

Publisher

verified publishercarapacik.dev

Weekly Downloads

Webview on Linux using webkit2gtk. Linux implementation of desktop_webview_window.

Repository (GitHub)
View/report issues

Topics

#webview #linux #webkit2gtk #webkitgtk

License

MIT (license)

Dependencies

flutter

More

Packages that depend on desktop_webview_linux

Packages that implement desktop_webview_linux