You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this HeartOverlayAnimator in my project. Expected result is this effect must display only on image/post which user will like(double tap). When i double tap on image/post this icon is appearing on all images/posts. I already have like button implemented and only need this HeartOverlayAnimator effect when user like any post/image.
I have used HeartOverlayAnimator like below.
import 'package:cmpic/widgets/heartoverlay.dart';
final StreamController<void> _doubleTapImageEvents =
StreamController.broadcast();
i have a function which handles like event. In that function i have written this.
if (_isLiked) // display overlay only for Like event and not for Unlike.
_doubleTapImageEvents.sink.add(null);
is there anything i am missing or implementing wrong? Please let me know how to display this effect on only images/post which user has doubletapped/liked.
thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi,
I am using this HeartOverlayAnimator in my project. Expected result is this effect must display only on image/post which user will like(double tap). When i double tap on image/post this icon is appearing on all images/posts. I already have like button implemented and only need this HeartOverlayAnimator effect when user like any post/image.
I have used HeartOverlayAnimator like below.
i have a function which handles like event. In that function i have written this.
below is my gesture detector for post/images.
is there anything i am missing or implementing wrong? Please let me know how to display this effect on only images/post which user has doubletapped/liked.
thanks in advance.
The text was updated successfully, but these errors were encountered: