问题描述
在抖动中,可以选择在组件之间绘制一条垂直线,如图所示.
In flutter, is there an option to draw a vertical line between components as in the image.
推荐答案
据我所知.但是,创建一个非常简单—如果您查看 Flutter的分隔线,您会看到它只是带有单个(底部)边框的SizedBox
.您可以执行相同的操作,但尺寸要切换.
Not as far as I know. However, it is quite simple to create one — if you look at the source for Flutter's Divider you'll see that it is simply a SizedBox
with a single (bottom) border. You could do the same but with dimensions switched.
更新(2018年10月4日):VerticalDivider
实现已由Flutter团队合并.查看文档,但是它非常易于使用-只需在两者之间连续两个其他项目.
Update (Oct 4, 2018): a VerticalDivider
implementation has been merged in by the Flutter team. Check out the docs but it's very simple to use — simply put it between two other items in a row.
这篇关于颤振-垂直分隔线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!