Fix: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null
akshaynjarangal opened this issue · comments
if anyone facing the warning with charts_flutter package after the flutter 3.0
update , you can simply remove null check '!'
on respective code lines, and rebuild the app. @google-admin please fix the issue on your side.
Same problem here. Please release soon.
Temporary fix
change your pubspec.yaml to this
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
charts_flutter: ^0.12.0
dependency_overrides:
# add override of charts_flutter
charts_flutter:
git:
url: https://github.com/kennenfromchina/charts.git
path: charts_flutter
ref: fix_flutter3.0
Use this package.
https://pub.dev/packages/charts_flutter_new
It's a fixed version of charts_flutter