flutter-examples icon indicating copy to clipboard operation
flutter-examples copied to clipboard

Facing issue with new Flutter upgrade.

Open praveengupta0895 opened this issue 3 years ago • 4 comments

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.

praveengupta0895 avatar May 19 '22 08:05 praveengupta0895

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

iampopal avatar May 23 '22 13:05 iampopal

This issue is fixed in other package but still not fixed in this package

iampopal avatar May 23 '22 13:05 iampopal

same error here, can't produce any build for iOS

chrisvidal avatar May 25 '22 03:05 chrisvidal

Please upgrade to the latest version and reopen this issue if still facing issue with the latest version.

LavanyaGowtham2021 avatar Feb 08 '24 13:02 LavanyaGowtham2021