google / charts

Home Page:https://pub.dev/packages/charts_flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Screenshot 2022-05-23 at 1 12 39 PM

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