0

My code was working without problem. After upgrading flutter, pug get is giving error: enter image description here

But when I set intl to intl 0.17.0 , I got another error enter image description here

How can I solve this. Is it possible to go back in the old version of flutter? Thanks

Vincent
  • 208
  • 3
  • 10

2 Answers2

0

The best way would be just remove the version from the dependencies which are causing error. And then run pub get it will automatically take the best version combination. For example replace :-

intl: ^0.17.0

with

intl:
Deepak Lohmod
  • 2,072
  • 2
  • 8
  • 18
0

You can try overriding the dependencies with:

dependencies:

  ...

dependency_overrides:
   #  intl: any
   intl: ^0.17.0-nullsafety.2

Try overriding with specific version to limit the problem.

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96