flutter ListView中添加分割线(边框线)

ListView.builder(
        itemCount: 3,
        itemBuilder: (BuildContext context, int index) {
          return Container(
            child: Text('aaaaaaaaa'),
            // 下边框
            decoration: BoxDecoration(
              border: Border(bottom: BorderSide(width: 1, color: Color(0xffe5e5e5)))
            ),
          );
        });

你可能感兴趣的:(flutter)