add button star
This commit is contained in:
@@ -874,6 +874,17 @@ class _MyHomePageState extends State<ListItemMenu> {
|
||||
return ListTile(
|
||||
title: Text('${post.name!}'),
|
||||
subtitle: Text('${post.place!}\n${dateLongue}'),
|
||||
trailing: IconButton(
|
||||
onPressed: () async {
|
||||
setState(() {
|
||||
bool checkInterested = post?.interested ?? false;
|
||||
post?.interested = !checkInterested;
|
||||
});
|
||||
},
|
||||
icon: Icon(
|
||||
post?.interested ?? false ? Icons.star : Icons.star_border,
|
||||
color:
|
||||
post?.interested ?? false ? Colors.blue : Colors.grey)),
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
|
Reference in New Issue
Block a user