8. Card

Card布局

Flutter布局中的Card布局,类似于Android开发中的CardView布局

class MyCardWidget extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Column(
      children: const [
        Card(
          child: ListTile(
            title: Text("地址1: "),
            subtitle: Text("上海市静安区广延路788号"),
            leading: Icon(Icons.eighteen_mp),
          ),
        ),
        Card(
          child: ListTile(
            title: Text("地址2: "),
            subtitle: Text("上海市松江区泗泾镇塘和家园"),
            leading: Icon(Icons.four_k_plus_rounded),
          ),
        ),
        Card(
          child: ListTile(
            title: Text("地址3:"),
            subtitle: Text("河南省驻马店市西平县"),
            leading: Icon(Icons.ac_unit),
          ),
        )
      ],
    );
  }

}

推荐阅读更多精彩内容