Commit f9ed06cc authored by Lorenzo Pichilli's avatar Lorenzo Pichilli

README.md

parent efdc1ff6
...@@ -125,6 +125,7 @@ import 'package:flutter/material.dart'; ...@@ -125,6 +125,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart';
Future main() async { Future main() async {
WidgetsFlutterBinding.ensureInitialized();
runApp(new MyApp()); runApp(new MyApp());
} }
...@@ -824,6 +825,7 @@ Example: ...@@ -824,6 +825,7 @@ Example:
InAppLocalhostServer localhostServer = new InAppLocalhostServer(); InAppLocalhostServer localhostServer = new InAppLocalhostServer();
Future main() async { Future main() async {
WidgetsFlutterBinding.ensureInitialized();
await localhostServer.start(); await localhostServer.start();
runApp(new MyApp()); runApp(new MyApp());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment