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

chart_container.dart:205:27: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null. #735

Closed
WorldpixelSoftware opened this issue Feb 8, 2022 · 5 comments

Comments

@WorldpixelSoftware
Copy link

Hi there!

Great Package to start with!

I changed to latest master version of Flutter and there are several warnings coming up regarding charts_flutter.

chart_container.dart:205:27: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
 - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
chart_container.dart:206:24: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
 - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
chart_container.dart:209:22: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
 - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
charts_flutter-0.12.0/lib/src/chart_container.dart:232:22: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
 - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'

Seems to be just a unnecessary null aware operator but the warning messages are annoying when building or rebuilding an application.

Cheers

@Wissperwind
Copy link

Same problem here

@WorldpixelSoftware
Copy link
Author

Please accept #739 this Pull Request or change it yourself. That should solve the error.

@SpeedyTiger
Copy link

well how can i solve it

@igolubic
Copy link

It's failing here: #739
It would be great if somebody can fix the issue and resubmit the PR.

@RonanLB
Copy link

RonanLB commented Aug 13, 2022

Bump, this package is owned by google and it would be nice if versions could transition nicely

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

No branches or pull requests

5 participants