when I try to run flutter projects it throw these errors and other errors as well can anyone help me out
No named parameter with the name 'nullOk'. context != null ? Localizations.localeOf(context, nullOk: true) : null, [duplicate]
Asked Answered
Try updating your flutter_svg
package to this pre-release version.
flutter_svg: ^0.20.0-nullsafety.3
Thanks, this should be marked as right answer –
Chyou
@Virgy Hi, I have not used flutter_svg in my project then also getting this error. Can you give me solution? –
Cracow
@ShriyaPandya I would check over your dependencies in pubspec.yaml and try and update to null safety for all your dependencies. You might also have to
flutter clean
if you change versions. –
Virgy © 2022 - 2024 — McMap. All rights reserved.
nullOk
parameter was removed fromLocalizations.localeOf
. Otherwise you'll need to stick with the stable version (1.22.6 as of writing). – Reta