Did this solve your issue?
In your main.dart
file:
localizationsDelegates: const [
S.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
FlutterQuillLocalizations.delegate,
],
locale: const Locale('en', 'PH'), // Set locale to Philippines; replace with your locale
supportedLocales: S.delegate.supportedLocales,
Note: You can remove the local configuration if you don't want to implement it across your entire app, and apply it per widget instead, just like what you did in your second code snippet.
I've already faced the same issue before, that configuration helped me.