File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class WebviewScaffold extends StatefulWidget {
3030 this .hidden = false ,
3131 this .initialChild,
3232 this .allowFileURLs,
33+ this .resizeToAvoidBottomInset = false ,
3334 this .invalidUrlRegex,
3435 this .geolocationEnabled
3536 }) : super (key: key);
@@ -54,6 +55,7 @@ class WebviewScaffold extends StatefulWidget {
5455 final bool hidden;
5556 final Widget initialChild;
5657 final bool allowFileURLs;
58+ final bool resizeToAvoidBottomInset;
5759 final String invalidUrlRegex;
5860 final bool geolocationEnabled;
5961
@@ -105,7 +107,7 @@ class _WebviewScaffoldState extends State<WebviewScaffold> {
105107 Widget build (BuildContext context) {
106108 return Scaffold (
107109 appBar: widget.appBar,
108- resizeToAvoidBottomInset: false ,
110+ resizeToAvoidBottomInset: widget.resizeToAvoidBottomInset ,
109111 persistentFooterButtons: widget.persistentFooterButtons,
110112 bottomNavigationBar: widget.bottomNavigationBar,
111113 body: _WebviewPlaceholder (
You can’t perform that action at this time.
0 commit comments