Skip to content

Commit

Permalink
Merge pull request #301 from gadfly361/add_resizeToAvoidBottomPadding
Browse files Browse the repository at this point in the history
add resizeToAvoidBottomInset to WebviewScaffold;
  • Loading branch information
charafau authored Mar 28, 2019
2 parents e0b8374 + 3279f77 commit 2e850c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/webview_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class WebviewScaffold extends StatefulWidget {
this.hidden = false,
this.initialChild,
this.allowFileURLs,
this.resizeToAvoidBottomInset = false,
this.invalidUrlRegex,
this.geolocationEnabled
}) : super(key: key);
Expand All @@ -54,6 +55,7 @@ class WebviewScaffold extends StatefulWidget {
final bool hidden;
final Widget initialChild;
final bool allowFileURLs;
final bool resizeToAvoidBottomInset;
final String invalidUrlRegex;
final bool geolocationEnabled;

Expand Down Expand Up @@ -105,7 +107,7 @@ class _WebviewScaffoldState extends State<WebviewScaffold> {
Widget build(BuildContext context) {
return Scaffold(
appBar: widget.appBar,
resizeToAvoidBottomInset: false,
resizeToAvoidBottomInset: widget.resizeToAvoidBottomInset,
persistentFooterButtons: widget.persistentFooterButtons,
bottomNavigationBar: widget.bottomNavigationBar,
body: _WebviewPlaceholder(
Expand Down

0 comments on commit 2e850c1

Please sign in to comment.