I used synfusion in my flutter code then when generating the apk i was not able to see the images and text on the apk then in the course of correcting i got this error and now do not know what to do
/C:/Users/Gabby/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_charts-26.2.9/lib/src/charts/cartesian_chart.dart:1367:22: Error: The method ‘markNeedsBuild’ isn’t defined for the class ‘RenderConstrainedLayoutBuilder<Constraints, RenderObject>’.
- ‘RenderConstrainedLayoutBuilder’ is from ‘package:flutter/src/widgets/layout_builder.dart’ (‘/C:/Users/Gabby/flutter/packages/flutter/lib/src/widgets/layout_builder.dart’).
- ‘Constraints’ is from ‘package:flutter/src/rendering/object.dart’ (‘/C:/Users/Gabby/flutter/packages/flutter/lib/src/rendering/object.dart’).
- ‘RenderObject’ is from ‘package:flutter/src/rendering/object.dart’ (‘/C:/Users/Gabby/flutter/packages/flutter/lib/src/rendering/object.dart’).
Try correcting the name to the name of an existing method, or defining a method named ‘markNeedsBuild’.
renderObject.markNeedsBuild();
^^^^^^^^^^^^^^
Target kernel_snapshot_program failed: Exception
i tried cleaning the cash and runing the command to get an APK and now my main issue is how to solve that error
Emmanuel Afanyu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.