Forráskód Böngészése

Corrected whitespace between buttons in dialog component

ashilkn 2 éve
szülő
commit
c9a2ddf1c0
1 módosított fájl, 6 hozzáadás és 1 törlés
  1. 6 1
      lib/ui/components/dialog_widget.dart

+ 6 - 1
lib/ui/components/dialog_widget.dart

@@ -138,7 +138,12 @@ class Actions extends StatelessWidget {
       children: addSeparators(
         buttons,
         const SizedBox(
-          height: 8,
+          // In figma this white space is of height 8pts. But the Button
+          // component has 1pts of invisible border by default in code. So two
+          // 1pts borders will visually make the whitespace 8pts.
+          // Height of button component in figma = 48, in code = 50 (2pts for
+          // top + bottom border)
+          height: 6,
         ),
       ),
     );