From f9ed06cc021623b123aa47f65d8febbf44811b68 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Sat, 9 May 2020 05:12:42 +0200 Subject: [PATCH] README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f1495396..a2641162 100755 --- a/README.md +++ b/README.md @@ -125,6 +125,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart'; Future main() async { + WidgetsFlutterBinding.ensureInitialized(); runApp(new MyApp()); } @@ -824,6 +825,7 @@ Example: InAppLocalhostServer localhostServer = new InAppLocalhostServer(); Future main() async { + WidgetsFlutterBinding.ensureInitialized(); await localhostServer.start(); runApp(new MyApp()); }