- Flutter Widget Livebook

VerticalDivider

A one device pixel thick vertical line, with padding on either side.

示例

Row(
  mainAxisSize: MainAxisSize.min,
  children: <Widget>[
    Container(
      child: Text('Item1')
    ),
    VerticalDivider(),
    Container(
      child: Text('Item2'),
    ),
    VerticalDivider(),
    Container(
      child: Text('Item3'),
    ),
  ],
)

相关链接

  1. 示例
  2. 相关链接