Flutter笔记(10)flutter中listview列表,一举拿下腾讯美团滴滴offer

本文通过一个Flutter代码示例展示了如何使用ListView组件创建列表,包含多个ListTile,每个包含标题、副标题和图标,适用于移动应用界面设计。适用于Android开发者进阶Flutter学习。

}

class MyApp extends StatelessWidget{

@override

Widget build(BuildContext context) {

// TODO: implement build

List list =[

new ListTile(

title: new Text(

‘北京市海淀区甘家口街道办事处’,

style: new TextStyle(

fontWeight: FontWeight.w400,fontSize: 18.0,

),),

subtitle: new Text(‘广州市福黄埔大道建中路3号’),

leading: new Icon(

Icons.fastfood,

color: Colors.orange,

),

isThreeLine: true,

enabled: true,

),

new ListTile(

title: new Text(

‘北京市海淀区甘家口街道办事处’,

style: new TextStyle(

fontWeight: FontWeight.w400,fontSize: 18.0,),),

subtitle: new Text(‘广州市福黄埔大道建中路7号’),

leading: new Icon(

Icons.airplay,

color: Colors.blue,

),

),

new ListTile(

title: new Text(

‘北京市海淀区甘家口街道办事处’,

style: new TextStyle(

fontWeight: FontWeight.w400,fontSize: 18.0,),),

subtitle: new Text(‘广州市福黄埔大道建中路3号’),

leading: new Icon(

Icons.local_hospital,

color: Colors.yellow,

),

),

new ListTile(

title: new Text(

‘北京市海淀区甘家口街道办事处’,

style: new TextStyle(

fontWeight: FontWeight.w400,fontSize: 18.0,),),

subtitle: new Text(‘广州市福黄埔大道建中路18号’),

leading: new Icon(

Icons.computer,

color: Colors.green,

),

),

new ListTile(

title: new Text(

‘北京市海淀区甘家口街道办事处’,

style: new TextStyle(

fontWeight: FontWeight.w400,fontSize: 18.0,),),

subtitle: new Text(‘广州市福黄埔大道建中路21号’),

leading: new Icon(

Icons.face,

color: Colors.grey,

),

),

new ListTile(

title: new Text(

‘北京市海淀区甘家口街道办事处’,

style: new TextStyle(

fontWeight: FontWeight.w400,fontSize: 18.0,),),

subtitle: new Text(‘广州市福黄埔大道建中路21号’),

leading: new Icon(

Icons.fast_forward,

color: Colors.grey,

),

),

new ListTile(

title: new Text(

‘北京市海淀区甘家口街道办事处’,

style: new TextStyle(

fontWeight: FontWeight.w400,fontSize: 18.0,),),

subtitle: new Text(‘广州市福黄埔大道建中路21号’),

leading: new Icon(

Icons.fast_rewind,

color: Colors.grey,

),

),

new ListTile(

title: new Text(

‘北京市海淀区甘家口街道办事处’,

style: new TextStyle(

fontWeight: FontWeight.w400,fontSize: 18.0,),),

subtitle: new Text(‘广州市福黄埔大道建中路21号’),

leading: new Icon(

Icons.favorite,

color: Colors.grey,

),

),

new ListTile(

title: new Text(

‘北京市海淀区甘家口街道办事处’,

style: new TextStyle(

fontWeight: FontWeight.w400,fontSize: 18.0,),),

subtitle: new Text(‘广州市福黄埔大道建中路21号’),

leading: new Icon(

Icons.favorite_border,

color: Colors.grey,

),

),

new ListTile(

title: new Text(

‘北京市海淀区甘家口街道办事处’,

style: new TextStyle(

fontWeight: FontWeight.w400,fontSize: 18.0,),),

subtitle: new Text(‘广州市福黄埔大道建中路21号’),

leading: new Icon(

Icons.dashboard,

color: Colors.grey,

),

),

最后

分享一份工作1到5年以上的Android程序员架构进阶学习路线体系,希望能对那些还在从事Android开发却还不知道如何去提升自己的,还处于迷茫的朋友!

  • 阿里P7级Android架构师技术脑图;查漏补缺,体系化深入学习提升

  • **全套体系化高级架构视频;**七大主流技术模块,视频+源码+笔记

有任何问题,欢迎广大网友一起来交流
的Android程序员架构进阶学习路线体系,希望能对那些还在从事Android开发却还不知道如何去提升自己的,还处于迷茫的朋友!**

  • 阿里P7级Android架构师技术脑图;查漏补缺,体系化深入学习提升

    [外链图片转存中…(img-OcZUpcp3-1647529079828)]

  • **全套体系化高级架构视频;**七大主流技术模块,视频+源码+笔记

[外链图片转存中…(img-3JY32GkO-1647529079829)]

有任何问题,欢迎广大网友一起来交流

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值