kraken_webview 0.2.0 kraken_webview: ^0.2.0 copied to clipboard
A new flutter plugin project.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:kraken_webview/kraken_webview.dart';
import 'package:kraken/kraken.dart';
void main() {
KrakenWebView.initialize();
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _platformVersion = 'Unknown';
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Kraken(bundlePath: 'assets/bundle.js'),
),
);
}
}