pqrsooo / image_res

A Flutter package that groups image-resolution variants inside your asset's folder
https://pub.dartlang.org/packages/image_res
MIT License
8 stars 3 forks source link

Support Null Safety #3

Closed dfdgsdfg closed 3 years ago

kallaspriit commented 3 years ago

Also please update dependencies.

[app] flutter pub get
Waiting for another flutter command to release the startup lock...
Running "flutter pub get" in app...                             
Because no versions of flutter_launcher_icons match >0.9.0 <0.10.0 and flutter_launcher_icons 0.9.0 depends on yaml ^3.0.0-nullsafety.0, flutter_launcher_icons ^0.9.0 requires yaml ^3.0.0-nullsafety.0.

And because image_res >=0.2.1 depends on yaml ^2.1.16, flutter_launcher_icons ^0.9.0 is incompatible with image_res >=0.2.1.

So, because beginning depends on both image_res ^0.2.3 and flutter_launcher_icons ^0.9.0, version solving failed.
pub get failed (1; So, because beginning depends on both image_res ^0.2.3 and flutter_launcher_icons ^0.9.0, version solving failed.)
exit code 1

[app] flutter pub get
Waiting for another flutter command to release the startup lock...
Running "flutter pub get" in app...                             
Because no versions of ferry_generator match >0.4.1-0.1.nullsafety.0 <0.5.0 and ferry_generator 0.4.1-0.1.nullsafety.0 depends on gql_build ^0.2.0-nullsafety.0, ferry_generator ^0.4.1-0.1.nullsafety.0 requires gql_build ^0.2.0-nullsafety.0.

Because gql_build 0.2.0-nullsafety.0 depends on yaml ^3.1.0 and no versions of gql_build match >0.2.0-nullsafety.0 <0.3.0, gql_build ^0.2.0-nullsafety.0 requires yaml ^3.1.0.

Thus, ferry_generator ^0.4.1-0.1.nullsafety.0 requires yaml ^3.1.0.

And because image_res >=0.2.1 depends on yaml ^2.1.16, ferry_generator ^0.4.1-0.1.nullsafety.0 is incompatible with image_res >=0.2.1.

So, because beginning depends on both image_res ^0.2.3 and ferry_generator ^0.4.1-0.1.nullsafety.0, version solving failed.
pub get failed (1; So, because beginning depends on both image_res ^0.2.3 and ferry_generator ^0.4.1-0.1.nullsafety.0, version solving failed.)
exit code 1
kallaspriit commented 3 years ago

Any progress on this? Currently still unusable because of the dependency issue.

roipeker commented 3 years ago

Just made a PR, waiting approval...

In the meantime, if you need to use the package with null-safety, you can use my fork:

dev_dependencies:
  image_res:
    git:
      url: https://github.com/roipeker/image_res.git
      ref: nullsafety-update
pqrsooo commented 3 years ago

4 has been merged.