kraken_webview 0.8.0-dev.1 kraken_webview: ^0.8.0-dev.1 copied to clipboard
kraken `<iframe />` tags support.
kraken_webview #
kraken <iframe />
tags support.
Installation #
First, add kraken_frame as a dependency in your pubspec.yaml file.
Second, add the following code before calling runApp():
void main() {
KrakenWebView.initialize();
runApp(MyApp());
}
Example #
const iframe = document.createElement('iframe');
iframe.setAttribute(
'src',
'https://dev.g.alicdn.com/kraken/kraken-demos/todomvc/build/web/index.html'
);
iframe.style.width = '360px';
iframe.style.height = '375px';
document.body.appendChild(iframe);
Contribute #
Install kraken-nbpt
npm install kraken-nbpt -g
Generate build project files:
kraken-nbpt configure
Build native dynamic library
kraken-nbpt build