From bfedbd09b86f726800a792be8ae539724b213d77 Mon Sep 17 00:00:00 2001 From: Alexandre Ardhuin Date: Wed, 10 Oct 2018 06:04:31 +0200 Subject: [PATCH] prefer_void_to_null in flutter_localizations (#22826) --- packages/flutter_localizations/test/date_picker_test.dart | 2 +- packages/flutter_localizations/test/time_picker_test.dart | 4 ++-- packages/flutter_localizations/test/widgets_test.dart | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter_localizations/test/date_picker_test.dart b/packages/flutter_localizations/test/date_picker_test.dart index 7abd4507b1..dba36d3fa2 100644 --- a/packages/flutter_localizations/test/date_picker_test.dart +++ b/packages/flutter_localizations/test/date_picker_test.dart @@ -225,7 +225,7 @@ void main() { }); } -Future _pumpBoilerplate( +Future _pumpBoilerplate( WidgetTester tester, Widget child, { Locale locale = const Locale('en', 'US'), diff --git a/packages/flutter_localizations/test/time_picker_test.dart b/packages/flutter_localizations/test/time_picker_test.dart index 3d978fb892..b863ba056e 100644 --- a/packages/flutter_localizations/test/time_picker_test.dart +++ b/packages/flutter_localizations/test/time_picker_test.dart @@ -47,7 +47,7 @@ Future startPicker(WidgetTester tester, ValueChanged onChange return tester.getCenter(find.byKey(const Key('time-picker-dial'))); } -Future finishPicker(WidgetTester tester) async { +Future finishPicker(WidgetTester tester) async { final MaterialLocalizations materialLocalizations = MaterialLocalizations.of(tester.element(find.byType(RaisedButton))); await tester.tap(find.text(materialLocalizations.okButtonLabel)); await tester.pumpAndSettle(const Duration(seconds: 1)); @@ -130,7 +130,7 @@ void main() { const List labels12To11TwoDigit = ['12', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11']; const List labels00To23 = ['00', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23']; - Future mediaQueryBoilerplate(WidgetTester tester, bool alwaysUse24HourFormat) async { + Future mediaQueryBoilerplate(WidgetTester tester, bool alwaysUse24HourFormat) async { await tester.pumpWidget( Localizations( locale: const Locale('en', 'US'), diff --git a/packages/flutter_localizations/test/widgets_test.dart b/packages/flutter_localizations/test/widgets_test.dart index a5df0931ea..efc8fc6aba 100644 --- a/packages/flutter_localizations/test/widgets_test.dart +++ b/packages/flutter_localizations/test/widgets_test.dart @@ -230,7 +230,7 @@ void main() { DefaultWidgetsLocalizations.delegate, ]; - Future pumpTest(Locale locale) async { + Future pumpTest(Locale locale) async { await tester.pumpWidget(Localizations( locale: locale, delegates: delegates,