// Description:横线
class HorizontalLine extends StatelessWidget {
final double dashedWidth;
final double dashedHeight;
final Color color;
HorizontalLine({
this.dashedHeight = 1,
this.dashedWidth = double.infinity,
this.color = const Color(0xFF979797),
});
@override
Widget build(BuildContext context) {
return Container(width: dashedWidth, height: dashedHeight, color: color);
}
}
用法
HorizontalLine(),
网友评论