Skip to content

Commit bb198c9

Browse files
authored
Merge pull request #79 from mclark4386/fixes_for_bottom
Taking safe areas into account for bottom bars
2 parents 75cf813 + 2064b2c commit bb198c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/webview_scaffold.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,15 @@ class _WebviewScaffoldState extends State<WebviewScaffold> {
9898

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

104104
if (widget.persistentFooterButtons != null) {
105105
height -=
106106
53.0; // todo(lejard_h) find a way to determine persistentFooterButtons programmatically
107+
if (widget.bottomNavigationBar == null){
108+
height -= mediaQuery.padding.bottom;
109+
}
107110
}
108111

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

0 commit comments

Comments
 (0)