瀏覽代碼

Corrected whitespace between buttons in dialog component

ashilkn 2 年之前
父節點
當前提交
c9a2ddf1c0
共有 1 個文件被更改,包括 6 次插入1 次删除
  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(
       children: addSeparators(
         buttons,
         buttons,
         const SizedBox(
         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,
         ),
         ),
       ),
       ),
     );
     );