TooltipBehavior gesture onPressed / onTap

Hi everybody, I have this SfCircularChart

image_4.png

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!


3 Replies

SK Sriram Kiran Senthilkumar Syncfusion Team September 15, 2022 12:38 PM UTC

Hi Mattia,


Greetings from Syncfusion.

We have checked your query at our end, and we would like to let you know that currently, we don’t have support for user interaction detection in the circular chart tooltip. However, we have considered your requirement as a feature regarding “Provide gesture detection support for tooltip builder in circular charts” and logged it in our feedback portal. We suggest you upvote the feedback link provided below as we prioritize the features of every release based on demand and priority. So, this feature will be available in any of our upcoming releases. You can also track the status of the feature with the feedback below.

https://www.syncfusion.com/feedback/37752


Regards,

Sriram Kiran



MA Mattia replied to Sriram Kiran Senthilkumar September 15, 2022 12:41 PM UTC

Thank you, have a nice day



SK Sriram Kiran Senthilkumar Syncfusion Team September 19, 2022 04:43 AM UTC

Hi Mattia,


Most welcome. Kindly get back to us if you have further queries. We are always happy to assist you.

Regards,

Sriram Kiran


Loader.
Up arrow icon