listTile ok
This commit is contained in:
parent
cf29b1d364
commit
10b8448917
@ -87,25 +87,8 @@ class _MyHomePageState extends State<ListItemMenu> {
|
|||||||
itemCount: posts.length,
|
itemCount: posts.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
final post = posts[index];
|
final post = posts[index];
|
||||||
return Container(
|
return ListTile(
|
||||||
color: Colors.grey.shade300,
|
title: Text('${post.name!}'), subtitle: Text('${post.place!}'));
|
||||||
margin: EdgeInsets.symmetric(vertical: 5, horizontal: 5),
|
|
||||||
padding: EdgeInsets.symmetric(vertical: 5, horizontal: 5),
|
|
||||||
height: 100,
|
|
||||||
width: double.maxFinite,
|
|
||||||
child: Row(
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
'${post.name!}\n\n',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
'${post.place!}',
|
|
||||||
style: Theme.of(context).textTheme.titleSmall,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user