Explorar o código

*started with taking safe areas into account

Matthew Clark %!s(int64=7) %!d(string=hai) anos
pai
achega
2064b2c5a7
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      lib/src/webview_scaffold.dart

+ 4 - 1
lib/src/webview_scaffold.dart

@@ -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);