I have a post list which there is a Post Likes where user can likes the post double clicking on the picture:
GestureDetector( onDoubleTap: (){ FirebaseFirestore.instance.collection('SocialPost').doc(post[index]['postID']).update({ 'likes': FieldValue.increment(1), }); }, but of course if the user clicks many times on the picture the number will increase according to the times he clicks.. I want that the user just when he click the number increase by 1 and stop if he clicks again no more action. how to handle this situation?