class CustomTooltipBehaviour extends TooltipBehavior {
// Other configurations
@override
void onDoubleTap(double xPos, double yPos) {
print('Tapped on chart');
super.onDoubleTap(xPos, yPos);
}
}
SfCartesianChart(
// The tooltip activation mode need to doubleTap
tooltipBehavior: CustomTooltipBehaviour(
enable: true, activationMode: ActivationMode.doubleTap)
// Other configurations
)
|
This is how you do it:
Double and long-tap are captured but single tap still goes to chart tool tip... Works perfectly
Hi Roberto,
We are happy to hear that you have found a new solution. If you have any further queries, please get back to us. We are always happy to assist you.
Regards,
Preethika Selvam.