提交 2aa0c77b authored 作者: shixiaochen's avatar shixiaochen

1、动态配置垂直分割线

上级 15fc1885
......@@ -40,12 +40,14 @@ const Widget vGap70 = SizedBox(height: 70.0);
const Widget vGap80 = SizedBox(height: 80.0);
const Widget vGap150 = SizedBox(height: 150.0);
Widget line({height = 1.0, Color? color}) => Divider(height: height, color: color, thickness: height);
Widget line({height = 1.0, Color? color}) =>
Divider(height: height, color: color, thickness: height);
const Widget vLine = SizedBox(
width: 0.6,
height: 24.0,
child: VerticalDivider(),
);
Widget vLine({double? width, double? height, Color? color}) => SizedBox(
width: width ?? 1.0,
height: height ?? 24.0,
child: VerticalDivider(
width: width ?? 1.0, thickness: width ?? 1.0, color: color),
);
const Widget empty = SizedBox.shrink();
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论