@@ -1518,7 +1518,7 @@ void main() {
1518
1518
});
1519
1519
1520
1520
testWidgets ('DatePicker adapts to MaterialApp dark mode' , (WidgetTester tester) async {
1521
- Widget _buildDatePicker (Brightness brightness) {
1521
+ Widget buildDatePicker (Brightness brightness) {
1522
1522
return MaterialApp (
1523
1523
theme: ThemeData (brightness: brightness),
1524
1524
home: CupertinoDatePicker (
@@ -1530,22 +1530,22 @@ void main() {
1530
1530
}
1531
1531
1532
1532
// CupertinoDatePicker with light theme.
1533
- await tester.pumpWidget (_buildDatePicker (Brightness .light));
1533
+ await tester.pumpWidget (buildDatePicker (Brightness .light));
1534
1534
RenderParagraph paragraph = tester.renderObject (find.text ('October' ).first);
1535
1535
expect (paragraph.text.style! .color, CupertinoColors .label);
1536
1536
// Text style should not return unresolved color.
1537
1537
expect (paragraph.text.style! .color.toString ().contains ('UNRESOLVED' ), isFalse);
1538
1538
1539
1539
// CupertinoDatePicker with dark theme.
1540
- await tester.pumpWidget (_buildDatePicker (Brightness .dark));
1540
+ await tester.pumpWidget (buildDatePicker (Brightness .dark));
1541
1541
paragraph = tester.renderObject (find.text ('October' ).first);
1542
1542
expect (paragraph.text.style! .color, CupertinoColors .label);
1543
1543
// Text style should not return unresolved color.
1544
1544
expect (paragraph.text.style! .color.toString ().contains ('UNRESOLVED' ), isFalse);
1545
1545
});
1546
1546
1547
1547
testWidgets ('TimerPicker adapts to MaterialApp dark mode' , (WidgetTester tester) async {
1548
- Widget _buildTimerPicker (Brightness brightness) {
1548
+ Widget buildTimerPicker (Brightness brightness) {
1549
1549
return MaterialApp (
1550
1550
theme: ThemeData (brightness: brightness),
1551
1551
home: CupertinoTimerPicker (
@@ -1557,14 +1557,14 @@ void main() {
1557
1557
}
1558
1558
1559
1559
// CupertinoTimerPicker with light theme.
1560
- await tester.pumpWidget (_buildTimerPicker (Brightness .light));
1560
+ await tester.pumpWidget (buildTimerPicker (Brightness .light));
1561
1561
RenderParagraph paragraph = tester.renderObject (find.text ('hours' ));
1562
1562
expect (paragraph.text.style! .color, CupertinoColors .label);
1563
1563
// Text style should not return unresolved color.
1564
1564
expect (paragraph.text.style! .color.toString ().contains ('UNRESOLVED' ), isFalse);
1565
1565
1566
1566
// CupertinoTimerPicker with light theme.
1567
- await tester.pumpWidget (_buildTimerPicker (Brightness .dark));
1567
+ await tester.pumpWidget (buildTimerPicker (Brightness .dark));
1568
1568
paragraph = tester.renderObject (find.text ('hours' ));
1569
1569
expect (paragraph.text.style! .color, CupertinoColors .label);
1570
1570
// Text style should not return unresolved color.
0 commit comments