fixes Show Week Day in CupertinoDatePicker with CupertinoDatePickerMo… (#120052)

fixes Show Week Day in CupertinoDatePicker with CupertinoDatePickerMo…
This commit is contained in:
Skandar Munir
2023-02-28 03:52:51 +02:00
committed by GitHub
parent 677971828d
commit 681b72c304
8 changed files with 74 additions and 11 deletions

View File

@@ -81,6 +81,8 @@ class _DatePickerExampleState extends State<DatePickerExample> {
initialDateTime: date,
mode: CupertinoDatePickerMode.date,
use24hFormat: true,
// This shows day of week alongside day of month
showDayOfWeek: true,
// This is called when the user changes the date.
onDateTimeChanged: (DateTime newDate) {
setState(() => date = newDate);

View File

@@ -18,7 +18,7 @@ void main() {
// Drag month, day and year wheels to change the picked date.
await tester.drag(find.text('October'), _kRowOffset, touchSlopY: 0, warnIfMissed: false); // see top of file
await tester.drag(find.text('26'), _kRowOffset, touchSlopY: 0, warnIfMissed: false); // see top of file
await tester.drag(find.textContaining('26').last, _kRowOffset, touchSlopY: 0, warnIfMissed: false); // see top of file
await tester.drag(find.text('2016'), _kRowOffset, touchSlopY: 0, warnIfMissed: false); // see top of file
await tester.pump();