Преглед на файлове

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,
                 ),
             ],
           ),