From 8b73f049e87e7415627c3230a596d0c2e79a7177 Mon Sep 17 00:00:00 2001 From: Matthew Jaoudi Date: Mon, 21 Jan 2019 17:48:23 -0800 Subject: [PATCH 1/2] add resizeToAvoidBottomPadding to WebviewScaffold; - fixes #300; --- lib/src/webview_scaffold.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/webview_scaffold.dart b/lib/src/webview_scaffold.dart index 8df7b05f..804bc6ae 100644 --- a/lib/src/webview_scaffold.dart +++ b/lib/src/webview_scaffold.dart @@ -30,6 +30,7 @@ class WebviewScaffold extends StatefulWidget { this.hidden = false, this.initialChild, this.allowFileURLs, + this.resizeToAvoidBottomPadding = true, }) : super(key: key); final PreferredSizeWidget appBar; @@ -52,6 +53,7 @@ class WebviewScaffold extends StatefulWidget { final bool hidden; final Widget initialChild; final bool allowFileURLs; + final bool resizeToAvoidBottomPadding; @override _WebviewScaffoldState createState() => _WebviewScaffoldState(); @@ -92,6 +94,7 @@ class _WebviewScaffoldState extends State { Widget build(BuildContext context) { return Scaffold( appBar: widget.appBar, + resizeToAvoidBottomPadding: widget.resizeToAvoidBottomPadding, persistentFooterButtons: widget.persistentFooterButtons, bottomNavigationBar: widget.bottomNavigationBar, body: _WebviewPlaceholder( From e6fc1f20e7e9c8be779a5b431a7dfa556770f6a1 Mon Sep 17 00:00:00 2001 From: Matthew Jaoudi Date: Tue, 26 Mar 2019 11:10:55 -0700 Subject: [PATCH 2/2] rename resizeToAvoidBottomPadding to resizeToAvoidBottomInset; - #300; --- lib/src/webview_scaffold.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/webview_scaffold.dart b/lib/src/webview_scaffold.dart index 3e139414..0ea447a9 100644 --- a/lib/src/webview_scaffold.dart +++ b/lib/src/webview_scaffold.dart @@ -30,7 +30,7 @@ class WebviewScaffold extends StatefulWidget { this.hidden = false, this.initialChild, this.allowFileURLs, - this.resizeToAvoidBottomPadding = true, + this.resizeToAvoidBottomInset = false, this.geolocationEnabled }) : super(key: key); @@ -54,7 +54,7 @@ class WebviewScaffold extends StatefulWidget { final bool hidden; final Widget initialChild; final bool allowFileURLs; - final bool resizeToAvoidBottomPadding; + final bool resizeToAvoidBottomInset; final bool geolocationEnabled; @override @@ -105,8 +105,7 @@ class _WebviewScaffoldState extends State { Widget build(BuildContext context) { return Scaffold( appBar: widget.appBar, - resizeToAvoidBottomPadding: widget.resizeToAvoidBottomPadding, - resizeToAvoidBottomInset: false, + resizeToAvoidBottomInset: widget.resizeToAvoidBottomInset, persistentFooterButtons: widget.persistentFooterButtons, bottomNavigationBar: widget.bottomNavigationBar, body: _WebviewPlaceholder(