FlutterCountdownTimer
FlutterCountdownTimer copied to clipboard
onEnd called before timer ends.
onEnd ({String `ownerId,String` postId,String photoUrl,String images,String name}) async {
await activityFeedRef
.doc(ownerId)
.collection("feedItems")
.doc(postId)
.set({
"type": "topBid",
"username": name,
"userId": ownerId,
"userProfileImg": photoUrl,
"postId": postId,
"mediaUrl": images,
"timestamp": timestamp,
"read": 'false',
});
bidsRef.doc(ownerId)
.collection("userBids")
.doc(postId)
.update({
"hasEnded":true,});
}
same problem
facing same issue