From e216e9d69856631409a852f026a8a8a44736e8cf Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 29 Jun 2024 00:17:22 +0200 Subject: [PATCH] first test with onTap and ID --- covas_mobile/lib/ListItemMenu.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/covas_mobile/lib/ListItemMenu.dart b/covas_mobile/lib/ListItemMenu.dart index eea0e64..833daa2 100644 --- a/covas_mobile/lib/ListItemMenu.dart +++ b/covas_mobile/lib/ListItemMenu.dart @@ -103,7 +103,10 @@ class _MyHomePageState extends State { return ListTile( title: Text('${post.name!}'), - subtitle: Text('${post.place!}\n${date} ${time}')); + subtitle: Text('${post.place!}\n${date} ${time}'), + onTap: () { + print("${post.id!}"); + }); }, separatorBuilder: (context, index) { return Divider();