|
@@ -32,7 +32,8 @@ class WebviewScaffold extends StatefulWidget {
|
|
|
this.allowFileURLs,
|
|
this.allowFileURLs,
|
|
|
this.resizeToAvoidBottomInset = false,
|
|
this.resizeToAvoidBottomInset = false,
|
|
|
this.invalidUrlRegex,
|
|
this.invalidUrlRegex,
|
|
|
- this.geolocationEnabled
|
|
|
|
|
|
|
+ this.geolocationEnabled,
|
|
|
|
|
+ this.debuggingEnabled = false,
|
|
|
}) : super(key: key);
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
final PreferredSizeWidget appBar;
|
|
final PreferredSizeWidget appBar;
|
|
@@ -58,6 +59,7 @@ class WebviewScaffold extends StatefulWidget {
|
|
|
final bool resizeToAvoidBottomInset;
|
|
final bool resizeToAvoidBottomInset;
|
|
|
final String invalidUrlRegex;
|
|
final String invalidUrlRegex;
|
|
|
final bool geolocationEnabled;
|
|
final bool geolocationEnabled;
|
|
|
|
|
+ final bool debuggingEnabled;
|
|
|
|
|
|
|
|
@override
|
|
@override
|
|
|
_WebviewScaffoldState createState() => _WebviewScaffoldState();
|
|
_WebviewScaffoldState createState() => _WebviewScaffoldState();
|
|
@@ -153,7 +155,8 @@ class _WebviewScaffoldState extends State<WebviewScaffold> {
|
|
|
appCacheEnabled: widget.appCacheEnabled,
|
|
appCacheEnabled: widget.appCacheEnabled,
|
|
|
allowFileURLs: widget.allowFileURLs,
|
|
allowFileURLs: widget.allowFileURLs,
|
|
|
invalidUrlRegex: widget.invalidUrlRegex,
|
|
invalidUrlRegex: widget.invalidUrlRegex,
|
|
|
- geolocationEnabled: widget.geolocationEnabled
|
|
|
|
|
|
|
+ geolocationEnabled: widget.geolocationEnabled,
|
|
|
|
|
+ debuggingEnabled: widget.debuggingEnabled,
|
|
|
);
|
|
);
|
|
|
} else {
|
|
} else {
|
|
|
if (_rect != value) {
|
|
if (_rect != value) {
|