The elements of the localizationsDelegates list are factories that produce
collections of localized values. GlobalMaterialLocalizations.delegate
provides localized strings and other values for the Material Components
library. GlobalWidgetsLocalizations.delegate defines the default
text direction, either left-to-right or right-to-left, for the widgets
library.

More information about these app properties, the types they
depend on, and how internationalized Flutter apps are typically
structured, can be found below.

Overriding the Locale

Localizations.override is a factory constructor for the Localizations widget
that allows for (the typically rare) situation where a section of your application
needs to be localized to a different locale than the locale configured for your device.

To observe this behavior, add a call to Localizations.override
and a simple CalendarDatePicker:

Hot reload the app and observe that the CalendarDatePicker widget re-renders in Spanish.

Adding your own localized messages