How can I localize showDatePicker on a single-locale app?
I've solved it.
Pass these arguments to the materialApp
:
localizationsDelegates: const [ GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, // ONLY if it's a RTL language],supportedLocales: const [ Locale('fr', 'FR'), // include country code too],
And since the locale is already defined, it's not necessary to pass it to showDatePicker
.