chinabrant / webview_cef

*Working in progress* flutter desktop webview backed by CEF (Chromium Embedded Framework). flutter webview for windows universal versions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webview_cef

Flutter Desktop webview backed by CEF (Chromium Embedded Framework). *Still working in progress

requirements

  • Windows 7+

notice

Inside your application folder, you need to add two lines in your windows\runner\main.cpp.(Because of Chromium multi process arch.)

#include "webview_cef/webview_cef_plugin_c_api.h"

int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
                      _In_ wchar_t *command_line, _In_ int show_command) {
  //start cef deamon processes. MUST CALL FIRST
  initCEFProcesses();

When first time building the project, a prebuilt cef bin package (200MB, link in release) will be downloaded automatically, hence you may wait for a longer time if you are building the project for the first time.

todos

  • multi instance support
  • keyboard events support
  • mouse events support
  • js bridge support
  • release to pub
  • macos support

demo

image image image image

thanks

This project inspired by https://github.com/jnschulze/flutter-webview-windows

About

*Working in progress* flutter desktop webview backed by CEF (Chromium Embedded Framework). flutter webview for windows universal versions.

License:Apache License 2.0


Languages

Language:C 56.4%Language:C++ 42.5%Language:CMake 0.5%Language:Dart 0.3%Language:Objective-C 0.1%Language:Ruby 0.1%Language:Swift 0.0%