Skip to content

Conversation

@kcoms555
Copy link
Contributor

@kcoms555 kcoms555 commented Dec 9, 2021

Summary

Problems

onTapUp: (_) {
setState(() => _tapPosition = null);
// Fire callback event (if needed)
if (widget.onTap != null) _fireOnTapEvent();
},

  • _fireOnTapEvent() needs position information to get a position of a candle.
  • But assignment of null on _tapPosition inside setState() make it unavailable.

Expected Results

image

  • make onTap() work.

@h65wang h65wang merged commit b16be1f into fluttercandies:master Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants