fixes Show Week Day in CupertinoDatePicker with CupertinoDatePickerMo… (#120052)
fixes Show Week Day in CupertinoDatePicker with CupertinoDatePickerMoâ¦
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user