flutter-studio / flutter-icons

Customizable Icons for Flutter :boom:
Apache License 2.0
332 stars 123 forks source link

Null safety migration #46

Closed baimamboukar closed 3 years ago

baimamboukar commented 3 years ago

Getting errors related to null safety support Error: Cannot run with sound null safety, because the following dependencies don't support null safety:

For solutions, see https://dart.dev/go/unsound-null-safety

Error: Cannot run with sound null safety, because the following dependencies don't support null safety:

Please do migrate the package to null safety

amirhsn commented 3 years ago

As per July 2020, Flutter use a null safety sound to prevent variables to be assign with the null values. From your issues, the only way to fix the error is

Downgrade the package version by simply check the version that has no null safety support on it

OR

disable the null safety by simply change the SDK Enviroment on pubspec.yaml files to support from SDK level 2.7.0

sdk: ">=2.7.0 <3.0.0"

nehal076 commented 3 years ago

+1000

baimamboukar commented 3 years ago

+1000

???

nehal076 commented 3 years ago

I agree with this issue. Please upgrade the package to null safety.

jibiel commented 3 years ago

Made the PR that addresses the problem: https://github.com/flutter-studio/flutter-icons/pull/47.