GitHub

    Table of contents

  1. 示例
  2. 相关链接

Divider

Edit this page

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

示例

Column(
  mainAxisSize: MainAxisSize.min,
  children: <Widget>[
    ListTile(
      title: Text('Item1')
    ),
    Divider(),
    ListTile(
      title: Text('Item2'),
    ),
    Divider(),
    ListTile(
      title: Text('Item3'),
    ),
  ],
)

相关链接