You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: remove this once the issue is fixed and test starts failing
362
+
testWidgets(
363
+
'Graphical MacosDatePicker still needs "startWeekOnMonday" to show Monday as the first day of the week, even when the locale is set to something other than "en_US"',
364
+
(tester) async {
365
+
await tester.pumpWidget(
366
+
MacosApp(
367
+
supportedLocales:const [
368
+
Locale('en', 'PL'),
369
+
],
370
+
home:MacosWindow(
371
+
child:MacosScaffold(
372
+
children: [
373
+
ContentArea(
374
+
builder: (context, _) {
375
+
returnCenter(
376
+
child:MacosDatePicker(
377
+
startWeekOnMonday:true,
378
+
initialDate:DateTime.parse('2023-04-01'),
379
+
onDateChanged: (date) {},
380
+
),
381
+
);
382
+
},
383
+
),
384
+
],
385
+
),
386
+
),
387
+
),
388
+
);
389
+
390
+
final dayHeadersRow = find.byType(GridView).first;
391
+
final dayHeaders = find.descendant(
392
+
of: dayHeadersRow,
393
+
matching: find.byType(Text),
394
+
);
395
+
final firstWeekday = dayHeaders.first;
396
+
final firstWeekdayText = (firstWeekday.evaluate().first.widget asText).data;
397
+
await tester.pumpAndSettle();
398
+
399
+
// The result will be 'Tu' if the fix is no longer needed and can be removed
0 commit comments