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

PlatformLinux

Webview on Linux using webkit2gtk. desktop_webview_window only Linux part.

desktop_webview_linux #

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

WebView for Linux using webkit2gtk. This is the Linux-only part of desktop_webview_window with Linux improvements. #

Getting Started #

Modify your main method: #

import 'package:desktop_webview_linux/desktop_webview_linux.dart';

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

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

  runApp(MyApp());
}

Launch the WebView #

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

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
3
likes
160
points
77
downloads

Publisher

verified publishercarapacik.dev

Weekly Downloads

Webview on Linux using webkit2gtk. desktop_webview_window only Linux part.

Repository (GitHub)

Topics

#webview #linux #webkit2gtk #webkitgtk

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path

More

Packages that depend on desktop_webview_linux