appLocalizationsDelegates top-level constant

List<LocalizationsDelegate> const appLocalizationsDelegates

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,
    ];