浏览代码

Fixes #141

removed the SizedBox. Leaving the size to adjust automatically depending on the footer's content.
MikeWallaceDev 3 年之前
父节点
当前提交
9fc13c7d62
共有 1 个文件被更改,包括 3 次插入6 次删除
  1. 3 6
      frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/list_overlay.dart

+ 3 - 6
frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/list_overlay.dart

@@ -55,12 +55,9 @@ class ListOverlay extends StatelessWidget {
                 controller: controller,
               ),
               if (footer != null)
-                SizedBox(
-                  height: footer!.height,
-                  child: Padding(
-                    padding: footer!.padding,
-                    child: SizedBox.expand(child: footer!.widget),
-                  ),
+                Padding(
+                  padding: footer!.padding,
+                  child: footer!.widget,
                 ),
             ],
           ),