mirror of
https://github.com/Iconica-Development/flutter_date_time_picker.git
synced 2025-05-19 02:43:50 +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,
|
GlobalMaterialLocalizations.delegate,
|
||||||
GlobalCupertinoLocalizations.delegate,
|
GlobalCupertinoLocalizations.delegate,
|
||||||
],
|
],
|
||||||
locale: const Locale('nl', 'NL'),
|
|
||||||
supportedLocales: const [
|
supportedLocales: const [
|
||||||
Locale('nl', 'NL'),
|
Locale('nl', 'NL'),
|
||||||
Locale('en', 'US'),
|
Locale('en', 'US'),
|
||||||
|
|
|
@ -53,7 +53,8 @@ class DatePicker extends StatelessWidget {
|
||||||
padding: const EdgeInsets.only(top: 8),
|
padding: const EdgeInsets.only(top: 8),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: List.generate(DateTime.daysPerWeek, (index) {
|
children: List.generate(DateTime.daysPerWeek, (index) {
|
||||||
DateFormat dateFormatter = DateFormat("EE");
|
DateFormat dateFormatter =
|
||||||
|
DateFormat.E(Localizations.localeOf(context).toString());
|
||||||
return Expanded(
|
return Expanded(
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|
|
@ -93,7 +93,8 @@ class _OverlayDateTimeContentState extends State<OverlayDateTimeContent> {
|
||||||
iconSize: widget.theme.paginationSize,
|
iconSize: widget.theme.paginationSize,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
DateFormat.yMMMM().format(
|
DateFormat.yMMMM(Localizations.localeOf(context).toString())
|
||||||
|
.format(
|
||||||
widget.controller.browsingDate,
|
widget.controller.browsingDate,
|
||||||
),
|
),
|
||||||
style: widget.theme.barTheme.textStyle,
|
style: widget.theme.barTheme.textStyle,
|
||||||
|
|
Loading…
Reference in a new issue