I am migrating an old Flutter project to Null Safety.

I want to use the package Easy Localization. It was working fine in the old project version.

Here you have main.dart code

 main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await EasyLocalization.ensureInitialized();
  SharedPreferences prefs = await SharedPreferences.getInstance();
  var email = prefs.getString('email');

  runApp(
    ProviderScope(
      child: EasyLocalization(
          path: "assets/translations",
          fallbackLocale: Locale('es'),
          saveLocale: true,
          supportedLocales: [Locale('en', 'EN'), Locale('es', 'ES')],
          child: MaterialApp(
              debugShowCheckedModeBanner: false,
              localizationsDelegates: [
                GlobalMaterialLocalizations.delegate,
                GlobalWidgetsLocalizations.delegate,
                GlobalCupertinoLocalizations.delegate,
                DefaultWidgetsLocalizations.delegate,
              ],

              home: email == null || email == '' ? LoginScreen() : MyHomePage())),
    ),
  );
}

And here you have pubspec.yaml piece of code

  assets:
    - logo_capenergy.png
    - assets/images/
    - assets/translations/

The issue is that running the app any translation key is found

  [WARNING] Localization key [Password] not found

The translation files are there with all needed keys

English

{
  "Password": "Password",
  "Login": "Login",
  "LoginNo": "Your credentials are not valid",
  "LoginYes": "Your credentials are valid",
...

Spanish

{
  "Password": "Contraseña",
  "Login": "Entrar",
  "LoginNo": "Tus datos de acceso no son correctos",
  "LoginYes": "Tus datos de acceso son correctos",...

What am I doing wrong?