Hi everybody, I have this SfCircularChart
It has a custom TooltipBehavior:
_tooltipBehavior = TooltipBehavior(
enable: true,
builder: (dynamic data, dynamic point, dynamic series, int pointIndex, int seriesIndex) {
return Container(
child: ElevatedButton(
onPressed: () {
print('tapped here');
},
child: Text(
'test',
),
),
);
});
The problem is that the function inside "onPressed" is never called. I also tried to switch ElevatedButton for RichText with TextSpan and TapGestureRecognizer but it is still not working.
Is there a way to have a clickable Widget inside a Tooltip?
I'm using Flutter for Android mobile devices
Thank you for your help!