From 10b8448917659f932b19c924947bf6c3679fd764 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Wed, 26 Jun 2024 21:46:51 +0200 Subject: [PATCH] listTile ok --- covas_mobile/lib/ListItemMenu.dart | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/covas_mobile/lib/ListItemMenu.dart b/covas_mobile/lib/ListItemMenu.dart index ee83305..7f371ac 100644 --- a/covas_mobile/lib/ListItemMenu.dart +++ b/covas_mobile/lib/ListItemMenu.dart @@ -87,25 +87,8 @@ class _MyHomePageState extends State { itemCount: posts.length, itemBuilder: (context, index) { final post = posts[index]; - return Container( - color: Colors.grey.shade300, - 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, - ), - ], - ), - ); + return ListTile( + title: Text('${post.name!}'), subtitle: Text('${post.place!}')); }, ); }