|
@@ -30,6 +30,7 @@ class WebviewScaffold extends StatefulWidget {
|
|
|
this.hidden = false,
|
|
this.hidden = false,
|
|
|
this.initialChild,
|
|
this.initialChild,
|
|
|
this.allowFileURLs,
|
|
this.allowFileURLs,
|
|
|
|
|
+ this.geolocationEnabled
|
|
|
}) : super(key: key);
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
final PreferredSizeWidget appBar;
|
|
final PreferredSizeWidget appBar;
|
|
@@ -52,6 +53,7 @@ class WebviewScaffold extends StatefulWidget {
|
|
|
final bool hidden;
|
|
final bool hidden;
|
|
|
final Widget initialChild;
|
|
final Widget initialChild;
|
|
|
final bool allowFileURLs;
|
|
final bool allowFileURLs;
|
|
|
|
|
+ final bool geolocationEnabled;
|
|
|
|
|
|
|
|
@override
|
|
@override
|
|
|
_WebviewScaffoldState createState() => _WebviewScaffoldState();
|
|
_WebviewScaffoldState createState() => _WebviewScaffoldState();
|
|
@@ -115,6 +117,7 @@ class _WebviewScaffoldState extends State<WebviewScaffold> {
|
|
|
supportMultipleWindows: widget.supportMultipleWindows,
|
|
supportMultipleWindows: widget.supportMultipleWindows,
|
|
|
appCacheEnabled: widget.appCacheEnabled,
|
|
appCacheEnabled: widget.appCacheEnabled,
|
|
|
allowFileURLs: widget.allowFileURLs,
|
|
allowFileURLs: widget.allowFileURLs,
|
|
|
|
|
+ geolocationEnabled: widget.geolocationEnabled
|
|
|
);
|
|
);
|
|
|
} else {
|
|
} else {
|
|
|
if (_rect != value) {
|
|
if (_rect != value) {
|