Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

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

Closed
akshaynjarangal opened this issue May 23, 2022 · 3 comments

Comments

@akshaynjarangal
Copy link

akshaynjarangal commented May 23, 2022

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
Copy link

Same problem here. Please release soon.

@kennenfromchina
Copy link

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
Copy link

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

It's a fixed version of charts_flutter

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants