_painter._calculateLocation(const Offset(null, null));

Thought that I would give SyncFusion charts a whirl in Flutter
Clean new project with simple build function
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Container(
//Initialize chart
child: SfCartesianChart()
)
)
);
}
And I am getting this error in both iOS and Android emulators
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Compiler message:
../sdk/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_charts-17.4.46/lib/src/common/user_interaction/tooltip.dart:345:52: Error: Constant evaluation error:
void hide() => _painter._calculateLocation(const Offset(null, null));
^
org-dartlang-sdk:///flutter/lib/ui/geometry.dart:15:9: Context: This assertion failed.
const OffsetBase(double dx, double dy)
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
Failed to build bundle.
Error launching application on iPhone 11 Pro Max.
Exited (sigterm)
Any help would be appreciated

1 Reply

DD Dharanidharan Dharmasivam Syncfusion Team February 26, 2020 11:16 AM UTC

Hi Bradley, 
 
Greetings from Syncfusion. We have analyzed your scenario and the issue is because of building our widgets on the master channel. Our Flutter widgets are compatible with the stable channel. You can try our widgets by downgrading or upgrading the versions in the stable channel that will work fine. We will include the fix for this in our upcoming patch release which is expected to be rolled out in the middle of next week.  
 
Thanks, 
Dharani. 


Loader.
Up arrow icon