Padding
Padding(
padding: EdgeInsets.only(top: 15.0, bottom: 15.0),
child:
)
List View
ListView todoListItems() {
return ListView.builder(
itemCount: count,
itemBuilder: (BuildContext context, int position) {
return Card(
color: Colors.white,
elevation: 2.0,
child: ListTile(
leading: CircleAvatar(
backgroundColor: Colors.black,
child: Text(this.todos[position].id.toString()),
),
title: Text(this.todos[position].title),
subtitle: Text(this.todos[position].date),
onTap: (){
debugPrint("Tapped on " + this.todos[position].id.toString() );
},
),
);
});
}
Comentarios
Publicar un comentario