Procházet zdrojové kódy

Fixes #141

removed the SizedBox. Leaving the size to adjust automatically depending on the footer's content.
MikeWallaceDev před 3 roky
rodič
revize
9fc13c7d62

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