appLocalizationsDelegates top-level constant
Replaces AppLocalizations.localizationsDelegates: the generated list still
uses the deprecated flutter_localizations Material and Cupertino
delegates, which do not provide the material_ui / cupertino_ui
localizations the widgets look up (non-English locales then fail).
Implementation
const List<LocalizationsDelegate<dynamic>> appLocalizationsDelegates =
<LocalizationsDelegate<dynamic>>[
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];