浏览代码

Move bottom sheet along with keyboard

ashilkn 2 年之前
父节点
当前提交
b8c68c2eb4
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      lib/ui/viewer/file/fading_bottom_bar.dart

+ 5 - 1
lib/ui/viewer/file/fading_bottom_bar.dart

@@ -253,7 +253,11 @@ class FadingBottomBarState extends State<FadingBottomBar> {
       barrierColor: backdropFaintDark,
       barrierColor: backdropFaintDark,
       context: context,
       context: context,
       builder: (BuildContext context) {
       builder: (BuildContext context) {
-        return FileInfoWidget(file);
+        return Padding(
+          padding:
+              EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
+          child: FileInfoWidget(file),
+        );
       },
       },
     );
     );
   }
   }