flutter material-layout

Divider

 分割线

Column(
        children: [
          Container(
            color: Colors.amber,
            child: const Center(
              child: Text(''),
            ),
          ),
          Divider(
            //分割线颜色
            color: Colors.black,
            //前缩进
            indent: 100.6,
            //后缩进
            endIndent: 20,
            //分割线厚度
            thickness: 3.5,
            //上下高度,除了厚度以外空白
            height: 10.1,
          ),
          Container(
            color: Colors.greenAccent,
            child: const Center(
              child: Text(''),
            ),
          ),
        ],
      )

  

ListTile

ListTile(
          //左图标
          leading: Icon(Icons.message),
          //右图标
          trailing:Icon(Icons.list) ,
          //标题
          title: Text('data'),
          //副标题
          subtitle: Text('AAAAAAA'),
          //点击
          onTap: (){print('object');},
          //长按
          onLongPress: (){print('long');},
        ),

 

 配合card显示出区域和阴影,有了立体感

Card(
          child: ListTile(
            //左图标
            leading: Icon(Icons.message),
            //右图标
            trailing:Icon(Icons.list) ,
            //标题
            title: Text('data'),
            //副标题
            subtitle: Text('AAAAAAA'),
            //点击
            onTap: (){print('object');},
            //长按
            onLongPress: (){print('long');},
          ),
        )

 

  

Stepper

步骤 

 

posted @ 2020-10-09 08:54  富坚老贼  阅读(149)  评论(0编辑  收藏  举报