I received this issue:
`โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following NoSuchMethodError was thrown building AboutPage(dirty):
The method 'containsKey' was called on null.
Receiver: null
Tried calling: containsKey("about")
The relevant error-causing widget was:
AboutPage file:///Users/ti/Documents/work/bitsens/daycounter/lib/router/app_router.dart:52:33
When the exception was thrown, this was the stack:
My Json is:
{
"about": "About"
}
LocaleKeys and CodegenLoader generated correctly.
Here is my main class:
runApp(EasyLocalization(
supportedLocales: AppLocalization.supportedLocales,
path: AppLocalization.path,
assetLoader: CodegenLoader(),
fallbackLocale: AppLocalization.supportedLocales[0],
child: App()));
Could you please help me with that?
Resolved. I had Locale('en', 'Us') instead of Locale('en').
Most helpful comment
Resolved. I had Locale('en', 'Us') instead of Locale('en').