mirror of
https://github.com/Iconica-Development/flutter_date_time_picker.git
synced 2025-05-18 18:33:49 +02:00
Merge remote-tracking branch 'origin/master' into feature/Improve_README
This commit is contained in:
parent
0835102dbd
commit
60a3605b48
3 changed files with 4 additions and 3 deletions
|
@ -24,7 +24,6 @@ class MyApp extends StatelessWidget {
|
|||
GlobalMaterialLocalizations.delegate,
|
||||
GlobalCupertinoLocalizations.delegate,
|
||||
],
|
||||
locale: const Locale('nl', 'NL'),
|
||||
supportedLocales: const [
|
||||
Locale('nl', 'NL'),
|
||||
Locale('en', 'US'),
|
||||
|
|
|
@ -53,7 +53,8 @@ class DatePicker extends StatelessWidget {
|
|||
padding: const EdgeInsets.only(top: 8),
|
||||
child: Row(
|
||||
children: List.generate(DateTime.daysPerWeek, (index) {
|
||||
DateFormat dateFormatter = DateFormat("EE");
|
||||
DateFormat dateFormatter =
|
||||
DateFormat.E(Localizations.localeOf(context).toString());
|
||||
return Expanded(
|
||||
child: Center(
|
||||
child: Padding(
|
||||
|
|
|
@ -93,7 +93,8 @@ class _OverlayDateTimeContentState extends State<OverlayDateTimeContent> {
|
|||
iconSize: widget.theme.paginationSize,
|
||||
),
|
||||
Text(
|
||||
DateFormat.yMMMM().format(
|
||||
DateFormat.yMMMM(Localizations.localeOf(context).toString())
|
||||
.format(
|
||||
widget.controller.browsingDate,
|
||||
),
|
||||
style: widget.theme.barTheme.textStyle,
|
||||
|
|
Loading…
Reference in a new issue