Flutter 2: problem in Intl null safety library
I had the same issue. Here are 3 steps to troubleshoot this:
First of all, update
intl
dependency inpubspec.yaml
to this:intl: 0.17.0-nullsafety.2
If still doesn't work, then add these 2 fields in the root.
dependency_overrides:intl: 0.17.0-nullsafety.2
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.