Error when clicking on Chart

When I click on my chart, I get the following errors:

══╡ EXCEPTION CAUGHT BY GESTURE ╞═════════════════════════════════════

The following _CastError was thrown while handling a gesture:

Null check operator used on a null value


When the exception was thrown, this was the stack:

#0 _ContainerArea.build.<anonymous closure>.<anonymous closure> (package:syncfusion_flutter_charts/src/chart/base/chart_base.dart:2212:50)

#1 TapGestureRecognizer.handleTapUp.<anonymous closure> (package:flutter/src/gestures/tap.dart:606:57)

#2 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:193:24)

#3 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:606:11)

#4 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:296:5)

#5 BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:267:7)

#6 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:157:27)

#7 GestureArenaManager.release (package:flutter/src/gestures/arena.dart:200:7)

#8 DoubleTapGestureRecognizer._reset (package:flutter/src/gestures/multitap.dart:314:45)

(elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)


Handler: "onTapUp"

Recognizer:

  TapGestureRecognizer#64962

══════════════════════════════════════════════════════════════════════════


1 Reply

SK Sriram Kiran Senthilkumar Syncfusion Team September 20, 2021 10:40 AM UTC

Hi Peter,


Greetings from Syncfusion. We have analyzed your scenario at our end, and we tried to replicate the reported issue regarding the chart widget throwing null exception when tap up or click gesture is performed on the chart. Unfortunately, the chart tap-up gestures are working fine at our end. As we are not exactly sure on what scenario the reported issue is replicating, we kindly request you to try to replicate the reported issue in the below attached sample and revert us so that it will be helpful in further analysis to provide the solutions sooner.


Regards,
Sriram Kiran



Loader.
Up arrow icon