File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
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 .resizeToAvoidBottomPadding = true ,
3334 }) : super (key: key);
3435
3536 final PreferredSizeWidget appBar;
@@ -52,6 +53,7 @@ class WebviewScaffold extends StatefulWidget {
5253 final bool hidden;
5354 final Widget initialChild;
5455 final bool allowFileURLs;
56+ final bool resizeToAvoidBottomPadding;
5557
5658 @override
5759 _WebviewScaffoldState createState () => _WebviewScaffoldState ();
@@ -92,6 +94,7 @@ class _WebviewScaffoldState extends State<WebviewScaffold> {
9294 Widget build (BuildContext context) {
9395 return Scaffold (
9496 appBar: widget.appBar,
97+ resizeToAvoidBottomPadding: widget.resizeToAvoidBottomPadding,
9598 persistentFooterButtons: widget.persistentFooterButtons,
9699 bottomNavigationBar: widget.bottomNavigationBar,
97100 body: _WebviewPlaceholder (
You can’t perform that action at this time.
0 commit comments