Skip to content

Commit

Permalink
Merge pull request #79 from mclark4386/fixes_for_bottom
Browse files Browse the repository at this point in the history
Taking safe areas into account for bottom bars
  • Loading branch information
lejard-h authored May 24, 2018
2 parents e951bc8 + d07455b commit a76adf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/webview_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,15 @@ class _WebviewScaffoldState extends State<WebviewScaffold> {

if (widget.bottomNavigationBar != null) {
height -=
56.0; // todo(lejard_h) find a way to determine bottomNavigationBar programmatically
56.0 + mediaQuery.padding.bottom; // todo(lejard_h) find a way to determine bottomNavigationBar programmatically
}

if (widget.persistentFooterButtons != null) {
height -=
53.0; // todo(lejard_h) find a way to determine persistentFooterButtons programmatically
if (widget.bottomNavigationBar == null){
height -= mediaQuery.padding.bottom;
}
}

return new Rect.fromLTWH(0.0, top, mediaQuery.size.width, height);
Expand Down

0 comments on commit a76adf4

Please sign in to comment.