Flutter 2: problem in Intl null safety library Flutter 2: problem in Intl null safety library flutter flutter

Flutter 2: problem in Intl null safety library


I had the same issue. Here are 3 steps to troubleshoot this:

  1. First of all, update intl dependency in pubspec.yaml to this:

    intl: 0.17.0-nullsafety.2

  2. If still doesn't work, then add these 2 fields in the root.

    dependency_overrides:intl: 0.17.0-nullsafety.2

  3. Generation also can happen via plugin in Android Studio. I used old one (v 0.12) and after I updated to (v 0.14) it started to generate null safety dart files for localization.

I think I stepped on every rock here.