Facing issue with new Flutter upgrade.
This is not letting me build the project.
/D:/Development/SDK/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_charts-20.1.56/lib/src/chart/base/chart_base.dart:1820:35: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' because it is potentially null.
- 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/D:/Development/SDK/Flutter/flutter/packages/flutter/lib/src/scheduler/binding.dart'). Try calling using ?. instead. SchedulerBinding.instance.addPostFrameCallback((_) { ^^^^^^^^^^^^^^^^^^^^ /D:/Development/SDK/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_charts-20.1.56/lib/src/chart/base/chart_base.dart:1829:37: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' because it is potentially null.
Hi @praveengupta0895 ,
We suspect that you haven't upgraded your Flutter SDK to the latest version. Our chart package is compatible with Flutter latest version, so we request to upgrade your Flutter SDK to resolve the mentioned issue.
Thanks, Dharani.
My flutter is updated but we still face this issue
This issue is fixed in other package but still not fixed in this package
same error here, can't produce any build for iOS
Please upgrade to the latest version and reopen this issue if still facing issue with the latest version.