google / charts

https://pub.dev/packages/charts_flutter
Apache License 2.0
2.81k stars 1.2k forks source link

Fix: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null #771

Closed akshaynjarangal closed 1 year ago

akshaynjarangal commented 2 years ago

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
Wissperwind commented 2 years ago

Same problem here. Please release soon.

kennenfromchina commented 2 years ago

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
trojancode commented 1 year ago

Use this package. https://pub.dev/packages/charts_flutter_new

It's a fixed version of charts_flutter