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(''),
            ),
          ),
        ],
      )

flutter material-layout

  

ListTile

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

flutter material-layout

 

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

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

flutter material-layout

 

  

Stepper

步骤 

 

相关文章:

  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2021-12-29
猜你喜欢
  • 2021-08-25
  • 2021-09-07
  • 2021-11-30
  • 2022-12-23
  • 2021-10-13
  • 2021-08-08
  • 2022-01-08
相关资源
相似解决方案