Open ankitunada opened 2 weeks ago
Hi @ankitunada,
We have validated the code snippet and attached screenshot. We have used your code snippet in our sample, but it is not in a runnable state. We suspect that you are using the interactive widget in the TooltipBehavior. We have prepared a workaround sample by placing the IconButton inside the TooltipBehavior. When you tap on the IconButton, it navigates to the provided link. We hope that the provided solution will resolve your issue. If not, we kindly request you to share more information on your requirement with sample including screen recording. This will help us assist you in a better way. We have shared sample and screen recording for your reference below. Please let us know if you need any further assistance.
Regards, Lokesh P.
custom tooltip view code :--
TooltipBehavior toolBarView({String name = "", List? filepath}) {
return TooltipBehavior(
enable: true,
builder:
(dynamic data, dynamic point, dynamic series, int pointIndex, int e) {
log("${point}");
log("${data.value}");
// name = filepath![pointIndex].fileName!;
// return Container();
return GestureDetector(
onTap: () {
log("message");
String url = filepath![pointIndex].filepath!;
String Files2Name = filepath[pointIndex].fileName!;
}
this is main code : -