Skip to content

Commit e695f96

Browse files
committed
Fix high CPU usage by flutter_webview_plugin
fluttercommunity/flutter_webview_plugin#386
1 parent 9bf61c7 commit e695f96

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/lib/main.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ class WebApp extends StatelessWidget {
120120
});
121121

122122
// Build application
123+
// https://github.com/fluttercommunity/flutter_webview_plugin/issues/386
123124
return MaterialApp(
124125
title: title,
125126
theme: themeData,
@@ -130,6 +131,7 @@ class WebApp extends StatelessWidget {
130131
url: _initialUrl.toString(),
131132
primary: true,
132133
geolocationEnabled: true,
134+
initialChild: Container()
133135
)
134136
)
135137
);

app/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies:
3131
#webview_flutter: ^0.3.4
3232
#webview_flutter:
3333
# git:
34-
# url: https://github.com/iamluciano/plugins.git
34+
# url: https://github.com/lucianoiam/plugins.git
3535
# path: packages/webview_flutter
3636
# path: ../../flutter-plugins/packages/webview_flutter
3737

0 commit comments

Comments
 (0)