源码https://github.com/AnleSu/select_text_item
效果图:
核心code:
Widget build(BuildContext context) {
return GestureDetector(
onTap: this.onTap,
child: Container(
height: this.height ?? 50.0,
margin: EdgeInsets.only(left: 16, right: 16),
width: double.infinity,
decoration: BoxDecoration(
border: Border(
//下面的分割线 width 这个参数应该是控制分割线高度的
bottom: Divider.createBorderSide(context,
color: Color(0xFFEEEEEE), width: 1))),
child: Row(
children: <Widget>[
this.imageName == null
? Container()
: Image.asset(
'${this.imageName}',