type 'Null' is not a subtype of type '_TrackballTemplateState' in type cast

type 'Null' is not a subtype of type '_TrackballTemplateState' in type cast
When I click on my chart and release it, I get the above exception.

What is causing the above?


6 Replies 1 reply marked as answer

DP Dharanitharan Palanisamy Syncfusion Team July 30, 2021 11:53 AM UTC

Hi Peter, 
 
Greetings from the team at Syncfusion. We have investigated your query and regrettably, we have not been able to reproduce the stated issue on our end. We investigated the reported problem on both mobile and web platforms, using several activation modes. As a result, we have attached the tested sample for your reference. Please duplicate the reported issue in this sample to assist us in analyzing your situation and providing the appropriate solution. 
 
 
Thanks, 
Dharanitharan.  



PE Peter July 31, 2021 03:48 AM UTC

This is the full error to give more details:


ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: LateInitializationError: Field '_alwaysShow@73283885' has not been initialized.

#0 _TrackballTemplateState._alwaysShow (package:syncfusion_flutter_charts/src/chart/user_interaction/trackball_template.dart)

#1 _TrackballTemplateState.hideTrackballTemplate (package:syncfusion_flutter_charts/src/chart/user_interaction/trackball_template.dart:134:21)

#2 TrackballBehavior.hide.<anonymous closure> (package:syncfusion_flutter_charts/src/chart/user_interaction/trackball.dart:476:32)

#3 _rootRun (dart:async/zone.dart:1346:47)

#4 _CustomZone.run (dart:async/zone.dart:1258:19)

#5 _CustomZone.runGuarded (dart:async/zone.dart:1162:7)

#6 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)

#7 _rootRun (dart:async/zone.dart:1354:13)

#8 _CustomZone.run (dart:async/zone.dart:1258:19)

#9 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1186:23)

#10 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)

#11 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:395:19)

#12 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:426:5)

#13 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)



DP Dharanitharan Palanisamy Syncfusion Team August 2, 2021 07:02 AM UTC

Hi Peter, 
 
As said earlier, this issue is got fixed already in our charts please try this in our latest version of charts, and if the issue persists, please revert us with the replication steps in the previously attached sample, which will help us to analyze and provide the solution to you sooner. 
 
 
Thanks 
Dharanitharan. P 
 


Marked as answer

PE Peter August 4, 2021 11:44 AM UTC

Thanks, the error is gone.



DP Dharanitharan Palanisamy Syncfusion Team August 5, 2021 05:54 AM UTC

Hi Peter, 
 
Most Welcome and thanks for the revert. Please revert us if you need any further assistance on this and we are always happy on assisting you. 
 
Thanks, 
Dharanitharan. P 



DP Dharanitharan Palanisamy Syncfusion Team August 5, 2021 05:54 AM UTC

Hi Peter, 
 
Most Welcome and thanks for the revert. Please revert us if you need any further assistance on this and we are always happy on assisting you. 
 
Thanks, 
Dharanitharan. P 


Loader.
Up arrow icon