diff --git a/packages/flutter/lib/src/cupertino/date_picker.dart b/packages/flutter/lib/src/cupertino/date_picker.dart index 9ef910d86cf..3261babaaff 100644 --- a/packages/flutter/lib/src/cupertino/date_picker.dart +++ b/packages/flutter/lib/src/cupertino/date_picker.dart @@ -1509,7 +1509,7 @@ class _CupertinoTimerPickerState extends State { .pickerTextStyle.merge( const TextStyle( fontSize: _kTimerPickerNumberLabelFontSize, - ) + ), ); } @@ -1561,7 +1561,7 @@ class _CupertinoTimerPickerState extends State { data: themeData.copyWith( textTheme: themeData.textTheme.copyWith( pickerTextStyle: _textStyleFrom(context), - ) + ), ), child: Align( alignment: widget.alignment, diff --git a/packages/flutter/lib/src/cupertino/dialog.dart b/packages/flutter/lib/src/cupertino/dialog.dart index 6473d051f5e..d34a0a31e9f 100644 --- a/packages/flutter/lib/src/cupertino/dialog.dart +++ b/packages/flutter/lib/src/cupertino/dialog.dart @@ -1554,7 +1554,7 @@ class _RenderCupertinoDialogActions extends RenderBox firstChild.size.height, lastChild.size.height, ), - ) + ), ); } } else { diff --git a/packages/flutter/lib/src/cupertino/text_field.dart b/packages/flutter/lib/src/cupertino/text_field.dart index 1fd210dd8e5..b249066cfba 100644 --- a/packages/flutter/lib/src/cupertino/text_field.dart +++ b/packages/flutter/lib/src/cupertino/text_field.dart @@ -70,7 +70,7 @@ enum OverlayVisibilityMode { class _CupertinoTextFieldSelectionGestureDetectorBuilder extends TextSelectionGestureDetectorBuilder { _CupertinoTextFieldSelectionGestureDetectorBuilder({ - @required _CupertinoTextFieldState state + @required _CupertinoTextFieldState state, }) : _state = state, super(delegate: state); diff --git a/packages/flutter/lib/src/foundation/assertions.dart b/packages/flutter/lib/src/foundation/assertions.dart index 456d039629a..8e6138a35e4 100644 --- a/packages/flutter/lib/src/foundation/assertions.dart +++ b/packages/flutter/lib/src/foundation/assertions.dart @@ -644,7 +644,7 @@ class FlutterError extends Error with DiagnosticableTreeMixin implements Asserti wrapWidth: wrapWidth, wrapWidthProperties: wrapWidth, maxDescendentsTruncatableNode: 5, - ).render(details.toDiagnosticsNode(style: DiagnosticsTreeStyle.error)).trimRight() + ).render(details.toDiagnosticsNode(style: DiagnosticsTreeStyle.error)).trimRight(), ); } else { debugPrint('Another exception was thrown: ${details.summary}'); diff --git a/packages/flutter/lib/src/material/about.dart b/packages/flutter/lib/src/material/about.dart index f8a8acac28e..74b612b03ae 100644 --- a/packages/flutter/lib/src/material/about.dart +++ b/packages/flutter/lib/src/material/about.dart @@ -275,7 +275,7 @@ void showLicensePage({ applicationVersion: applicationVersion, applicationIcon: applicationIcon, applicationLegalese: applicationLegalese, - ) + ), )); } diff --git a/packages/flutter/lib/src/material/expansion_panel.dart b/packages/flutter/lib/src/material/expansion_panel.dart index a7c1c347875..e47344216f0 100644 --- a/packages/flutter/lib/src/material/expansion_panel.dart +++ b/packages/flutter/lib/src/material/expansion_panel.dart @@ -488,7 +488,7 @@ class _ExpansionPanelListState extends State { child: InkWell( onTap: () => _handlePressed(_isChildExpanded(index), index), child: header, - ) + ), ); } items.add( diff --git a/packages/flutter/lib/src/material/mergeable_material.dart b/packages/flutter/lib/src/material/mergeable_material.dart index 3c4dba64af8..cf02cb22d68 100644 --- a/packages/flutter/lib/src/material/mergeable_material.dart +++ b/packages/flutter/lib/src/material/mergeable_material.dart @@ -537,7 +537,7 @@ class _MergeableMaterialState extends State with TickerProvid mainAxis: widget.mainAxis, children: slices, ), - ) + ), ); slices = []; @@ -545,7 +545,7 @@ class _MergeableMaterialState extends State with TickerProvid SizedBox( width: widget.mainAxis == Axis.horizontal ? _getGapSize(i) : null, height: widget.mainAxis == Axis.vertical ? _getGapSize(i) : null, - ) + ), ); } else { final MaterialSlice slice = _children[i]; @@ -591,7 +591,7 @@ class _MergeableMaterialState extends State with TickerProvid Material( type: MaterialType.transparency, child: child, - ) + ), ); } } @@ -608,7 +608,7 @@ class _MergeableMaterialState extends State with TickerProvid mainAxis: widget.mainAxis, children: slices, ), - ) + ), ); slices = []; } diff --git a/packages/flutter/lib/src/material/paginated_data_table.dart b/packages/flutter/lib/src/material/paginated_data_table.dart index 34510153828..387f5d7138f 100644 --- a/packages/flutter/lib/src/material/paginated_data_table.dart +++ b/packages/flutter/lib/src/material/paginated_data_table.dart @@ -401,7 +401,7 @@ class PaginatedDataTableState extends State { _firstRowIndex + widget.rowsPerPage, _rowCount, _rowCountApproximate, - ) + ), ), Container(width: 32.0), IconButton( diff --git a/packages/flutter/lib/src/material/selectable_text.dart b/packages/flutter/lib/src/material/selectable_text.dart index 36478baad02..a2d08ee64d3 100644 --- a/packages/flutter/lib/src/material/selectable_text.dart +++ b/packages/flutter/lib/src/material/selectable_text.dart @@ -46,7 +46,7 @@ class _TextSpanEditingController extends TextEditingController { class _SelectableTextSelectionGestureDetectorBuilder extends TextSelectionGestureDetectorBuilder { _SelectableTextSelectionGestureDetectorBuilder({ - @required _SelectableTextState state + @required _SelectableTextState state, }) : _state = state, super(delegate: state); diff --git a/packages/flutter/lib/src/material/text_field.dart b/packages/flutter/lib/src/material/text_field.dart index c61d5356369..f86be7ddebc 100644 --- a/packages/flutter/lib/src/material/text_field.dart +++ b/packages/flutter/lib/src/material/text_field.dart @@ -35,7 +35,7 @@ typedef InputCounterWidgetBuilder = Widget Function( class _TextFieldSelectionGestureDetectorBuilder extends TextSelectionGestureDetectorBuilder { _TextFieldSelectionGestureDetectorBuilder({ - @required _TextFieldState state + @required _TextFieldState state, }) : _state = state, super(delegate: state); diff --git a/packages/flutter/lib/src/rendering/proxy_box.dart b/packages/flutter/lib/src/rendering/proxy_box.dart index 9117dc28ec7..bfac1ab890a 100644 --- a/packages/flutter/lib/src/rendering/proxy_box.dart +++ b/packages/flutter/lib/src/rendering/proxy_box.dart @@ -3054,7 +3054,7 @@ class RenderIgnorePointer extends RenderProxyBox { 'ignoringSemantics', _effectiveIgnoringSemantics, description: ignoringSemantics == null ? 'implicitly $_effectiveIgnoringSemantics' : null, - ) + ), ); } } diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 6d42b6a3062..d8336cfceb5 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -3966,7 +3966,7 @@ abstract class ComponentElement extends Element { informationCollector: () sync* { yield DiagnosticsDebugCreator(DebugCreator(this)); }, - ) + ), ); } finally { // We delay marking the element as clean until after calling build() so @@ -3986,7 +3986,7 @@ abstract class ComponentElement extends Element { informationCollector: () sync* { yield DiagnosticsDebugCreator(DebugCreator(this)); }, - ) + ), ); _child = updateChild(null, built, slot); } diff --git a/packages/flutter/lib/src/widgets/layout_builder.dart b/packages/flutter/lib/src/widgets/layout_builder.dart index 48b5bea11dc..4a6c83b6e98 100644 --- a/packages/flutter/lib/src/widgets/layout_builder.dart +++ b/packages/flutter/lib/src/widgets/layout_builder.dart @@ -107,7 +107,7 @@ class _LayoutBuilderElement extends RenderOb informationCollector: () sync* { yield DiagnosticsDebugCreator(DebugCreator(this)); }, - ) + ), ); } } @@ -123,7 +123,7 @@ class _LayoutBuilderElement extends RenderOb informationCollector: () sync* { yield DiagnosticsDebugCreator(DebugCreator(this)); }, - ) + ), ); _child = updateChild(null, built, slot); } diff --git a/packages/flutter/lib/src/widgets/title.dart b/packages/flutter/lib/src/widgets/title.dart index 2bb7ef5d1d7..23b42d92eec 100644 --- a/packages/flutter/lib/src/widgets/title.dart +++ b/packages/flutter/lib/src/widgets/title.dart @@ -44,7 +44,7 @@ class Title extends StatelessWidget { ApplicationSwitcherDescription( label: title, primaryColor: color.value, - ) + ), ); return child; } diff --git a/packages/flutter/lib/src/widgets/widget_inspector.dart b/packages/flutter/lib/src/widgets/widget_inspector.dart index 5698b1a6c6f..abcd7f89a29 100644 --- a/packages/flutter/lib/src/widgets/widget_inspector.dart +++ b/packages/flutter/lib/src/widgets/widget_inspector.dart @@ -2504,7 +2504,7 @@ class _InspectorOverlayLayer extends Layer { ErrorSummary( 'The inspector should never be used in production mode due to the ' 'negative performance impact.' - ) + ), ]); } } @@ -2808,7 +2808,7 @@ Iterable _describeRelevantUserCode(Element element) { children: [ ErrorDescription('${ancestor.widget.toStringShort()} ${_describeCreationLocation(ancestor)}'), ], - ) + ), ); nodes.add(ErrorSpacer()); return false; diff --git a/packages/flutter/test/cupertino/action_sheet_test.dart b/packages/flutter/test/cupertino/action_sheet_test.dart index 1881a2e42a2..665f09ee412 100644 --- a/packages/flutter/test/cupertino/action_sheet_test.dart +++ b/packages/flutter/test/cupertino/action_sheet_test.dart @@ -83,7 +83,7 @@ void main() { find.descendant( of: find.widgetWithText(CupertinoActionSheetAction, text), matching: find.byType(DefaultTextStyle), - ) + ), ).style; } @@ -313,7 +313,7 @@ void main() { ), ); }), - ) + ), ); await tester.tap(find.text('Go')); diff --git a/packages/flutter/test/cupertino/button_test.dart b/packages/flutter/test/cupertino/button_test.dart index c80cb242729..40bb654ee67 100644 --- a/packages/flutter/test/cupertino/button_test.dart +++ b/packages/flutter/test/cupertino/button_test.dart @@ -21,7 +21,7 @@ void main() { boilerplate(child: const CupertinoButton( child: Text('X', style: testStyle), onPressed: null, - )) + )), ); final RenderBox buttonBox = tester.renderObject(find.byType(CupertinoButton)); expect( @@ -38,7 +38,7 @@ void main() { child: Text('X', style: testStyle), onPressed: null, minSize: minSize, - )) + )), ); final RenderBox buttonBox = tester.renderObject(find.byType(CupertinoButton)); expect( @@ -53,7 +53,7 @@ void main() { boilerplate(child: const CupertinoButton( child: Text('XXXX', style: testStyle), onPressed: null, - )) + )), ); final RenderBox buttonBox = tester.renderObject(find.byType(CupertinoButton)); expect( @@ -311,7 +311,7 @@ void main() { find.descendant( of: find.byType(CupertinoButton), matching: find.byType(DecoratedBox), - ) + ), ).decoration; expect(decoration.color, CupertinoColors.activeBlue); @@ -346,7 +346,7 @@ void main() { find.descendant( of: find.byType(CupertinoButton), matching: find.byType(DecoratedBox), - ) + ), ).decoration; expect(decoration.color.value, CupertinoColors.activeOrange.darkColor.value); }); diff --git a/packages/flutter/test/cupertino/date_picker_test.dart b/packages/flutter/test/cupertino/date_picker_test.dart index 328b4738e18..6403e13608b 100644 --- a/packages/flutter/test/cupertino/date_picker_test.dart +++ b/packages/flutter/test/cupertino/date_picker_test.dart @@ -358,8 +358,8 @@ void main() { minuteInterval: 3, ), ), - ) - ) + ), + ), ); // Drag the minute picker to the next slot (03 -> 06). @@ -889,8 +889,8 @@ void main() { onDateTimeChanged: (_) {}, ), ), - ) - ) + ), + ), ); final dynamic exception = tester.takeException(); @@ -916,8 +916,8 @@ void main() { ), ), ), - ) - ) + ), + ), ); await expectLater( diff --git a/packages/flutter/test/cupertino/nav_bar_test.dart b/packages/flutter/test/cupertino/nav_bar_test.dart index 70204dcc5ca..66a87ecbca2 100644 --- a/packages/flutter/test/cupertino/nav_bar_test.dart +++ b/packages/flutter/test/cupertino/nav_bar_test.dart @@ -963,7 +963,7 @@ void main() { child: Placeholder(), ); }, - ) + ), ); await tester.pump(); @@ -975,7 +975,7 @@ void main() { builder: (BuildContext context) { return const CupertinoNavigationBarBackButton(); }, - ) + ), ); await tester.pump(); @@ -1004,7 +1004,7 @@ void main() { child: Placeholder(), ); }, - ) + ), ); await tester.pump(); @@ -1023,7 +1023,7 @@ void main() { child: const Placeholder(), ); }, - ) + ), ); await tester.pump(); diff --git a/packages/flutter/test/cupertino/route_test.dart b/packages/flutter/test/cupertino/route_test.dart index 33ada9bc895..5695150833d 100644 --- a/packages/flutter/test/cupertino/route_test.dart +++ b/packages/flutter/test/cupertino/route_test.dart @@ -31,7 +31,7 @@ void main() { child: Placeholder(), ); }, - ) + ), ); await tester.pump(); @@ -64,7 +64,7 @@ void main() { ), ); }, - ) + ), ); await tester.pump(); @@ -126,7 +126,7 @@ void main() { child: Placeholder(), ); }, - ) + ), ); await tester.pump(); @@ -141,7 +141,7 @@ void main() { child: Placeholder(), ); }, - ) + ), ); await tester.pump(); @@ -172,7 +172,7 @@ void main() { child: Placeholder(), ); }, - ) + ), ); await tester.pump(); @@ -187,7 +187,7 @@ void main() { child: Placeholder(), ); }, - ) + ), ); // Trigger the route push diff --git a/packages/flutter/test/cupertino/scaffold_test.dart b/packages/flutter/test/cupertino/scaffold_test.dart index 9747580069f..d4c7a9a1a6c 100644 --- a/packages/flutter/test/cupertino/scaffold_test.dart +++ b/packages/flutter/test/cupertino/scaffold_test.dart @@ -176,7 +176,7 @@ void main() { data: MediaQueryData(viewInsets: EdgeInsets.only(bottom: 20.0)), child: child, ), - ) + ), ); final Offset initialPoint = tester.getCenter(find.byType(Placeholder)); @@ -192,7 +192,7 @@ void main() { ), child: child, ), - ) + ), ); final Offset finalPoint = tester.getCenter(find.byType(Placeholder)); expect(initialPoint, finalPoint); diff --git a/packages/flutter/test/cupertino/segmented_control_test.dart b/packages/flutter/test/cupertino/segmented_control_test.dart index 88099e398bd..1ad5878e52b 100644 --- a/packages/flutter/test/cupertino/segmented_control_test.dart +++ b/packages/flutter/test/cupertino/segmented_control_test.dart @@ -171,7 +171,7 @@ void main() { children: children, onValueChanged: (int newValue) { }, ), - ) + ), ); // Default padding works. @@ -191,7 +191,7 @@ void main() { children: children, onValueChanged: (int newValue) { }, ), - ) + ), ); // Custom padding works. diff --git a/packages/flutter/test/cupertino/tab_scaffold_test.dart b/packages/flutter/test/cupertino/tab_scaffold_test.dart index dfc9b2e7bd6..eb0da3ea005 100644 --- a/packages/flutter/test/cupertino/tab_scaffold_test.dart +++ b/packages/flutter/test/cupertino/tab_scaffold_test.dart @@ -554,7 +554,7 @@ void main() { return Text('Different page ${index + 1}'); }, ), - ) + ), ); expect(tabsBuilt, const [0, 1]); @@ -653,7 +653,7 @@ void main() { ); }, ), - ) + ), ); expect(tabsPainted, const [0]); @@ -675,7 +675,7 @@ void main() { ); }, ), - ) + ), ); expect(tabsPainted, const [0, 0]); @@ -869,10 +869,10 @@ void main() { ); }, ), - ] - ) - ) - ) + ], + ), + ), + ), ); expect(tabsPainted0, const [2, 0, 1, 2]); expect(tabsPainted1, const [2, 0]); @@ -892,7 +892,7 @@ void main() { controller: controller, tabBuilder: (BuildContext context, int index) => Text('Different page ${index + 1}'), ), - ) + ), ); } on AssertionError catch (e) { expect(e.toString(), contains('controller.index < tabBar.items.length')); @@ -907,7 +907,7 @@ void main() { controller: controller, tabBuilder: (BuildContext context, int index) => Text('Different page ${index + 1}'), ), - ) + ), ); expect(tester.takeException(), null); @@ -936,7 +936,7 @@ void main() { return Container(); }, ), - ) + ), ); for (int i = 0; i < 3; i++) { @@ -958,7 +958,7 @@ void main() { return Container(); }, ), - ) + ), ); for (int i = 0; i < 5; i++) { controller.index = i; diff --git a/packages/flutter/test/cupertino/text_field_test.dart b/packages/flutter/test/cupertino/text_field_test.dart index 97d09628e0e..fd23bf47fbf 100644 --- a/packages/flutter/test/cupertino/text_field_test.dart +++ b/packages/flutter/test/cupertino/text_field_test.dart @@ -2926,10 +2926,10 @@ void main() { controller: TextEditingController(text: 'lorem'), enabled: false, ), - ) + ), ), - ) - ) + ), + ), ); await expectLater( diff --git a/packages/flutter/test/cupertino/text_selection_test.dart b/packages/flutter/test/cupertino/text_selection_test.dart index 5cc1a136b01..ca74ca530b7 100644 --- a/packages/flutter/test/cupertino/text_selection_test.dart +++ b/packages/flutter/test/cupertino/text_selection_test.dart @@ -23,7 +23,7 @@ void main() { style: const TextStyle(), cursorColor: const Color.fromARGB(0, 0, 0, 0), backgroundCursorColor: const Color.fromARGB(0, 0, 0, 0), - ) + ), ); } diff --git a/packages/flutter/test/gestures/gesture_binding_test.dart b/packages/flutter/test/gestures/gesture_binding_test.dart index d899a2db4e7..9eb0c403da4 100644 --- a/packages/flutter/test/gestures/gesture_binding_test.dart +++ b/packages/flutter/test/gestures/gesture_binding_test.dart @@ -38,7 +38,7 @@ void main() { data: [ ui.PointerData(change: ui.PointerChange.down), ui.PointerData(change: ui.PointerChange.up), - ] + ], ); final List events = []; @@ -56,7 +56,7 @@ void main() { ui.PointerData(change: ui.PointerChange.down), ui.PointerData(change: ui.PointerChange.move), ui.PointerData(change: ui.PointerChange.up), - ] + ], ); final List events = []; @@ -76,7 +76,7 @@ void main() { ui.PointerData(change: ui.PointerChange.hover), ui.PointerData(change: ui.PointerChange.remove), ui.PointerData(change: ui.PointerChange.hover), - ] + ], ); final List pointerRouterEvents = []; @@ -110,7 +110,7 @@ void main() { physicalX: 10.0 * ui.window.devicePixelRatio, physicalY: 15.0 * ui.window.devicePixelRatio, ), - ] + ], ); final List events = []; @@ -129,7 +129,7 @@ void main() { data: [ ui.PointerData(change: ui.PointerChange.down), ui.PointerData(change: ui.PointerChange.cancel), - ] + ], ); final List events = []; @@ -146,7 +146,7 @@ void main() { data: [ ui.PointerData(change: ui.PointerChange.down), ui.PointerData(change: ui.PointerChange.up), - ] + ], ); final List events = []; @@ -169,7 +169,7 @@ void main() { ui.PointerData(change: ui.PointerChange.hover, device: 24), ui.PointerData(change: ui.PointerChange.remove, device: 24), ui.PointerData(change: ui.PointerChange.hover, device: 24), - ] + ], ); final List events = PointerEventConverter.expand( @@ -189,7 +189,7 @@ void main() { ui.PointerData(change: ui.PointerChange.add, device: 25, physicalX: 10.0 * ui.window.devicePixelRatio, physicalY: 10.0 * ui.window.devicePixelRatio), ui.PointerData(change: ui.PointerChange.down, device: 25, physicalX: 15.0 * ui.window.devicePixelRatio, physicalY: 17.0 * ui.window.devicePixelRatio), const ui.PointerData(change: ui.PointerChange.remove, device: 25), - ] + ], ); final List events = PointerEventConverter.expand( @@ -210,7 +210,7 @@ void main() { data: [ ui.PointerData(change: ui.PointerChange.add), ui.PointerData(change: ui.PointerChange.hover, signalKind: ui.PointerSignalKind.scroll), - ] + ], ); final List events = PointerEventConverter.expand( @@ -233,7 +233,7 @@ void main() { ui.PointerData(change: ui.PointerChange.hover, physicalX: lastLocation.dx, physicalY: lastLocation.dy), ui.PointerData(change: ui.PointerChange.down, physicalX: lastLocation.dx, physicalY: lastLocation.dy), ui.PointerData(change: ui.PointerChange.hover, physicalX: scrollLocation.dx, physicalY: scrollLocation.dy, signalKind: ui.PointerSignalKind.scroll), - ] + ], ); final List events = PointerEventConverter.expand( @@ -261,7 +261,7 @@ void main() { ui.PointerData(change: ui.PointerChange.down, kind: kind, physicalX: location.dx, physicalY: location.dy), ui.PointerData(change: ui.PointerChange.move, kind: kind, physicalX: location.dx, physicalY: location.dy), ui.PointerData(change: ui.PointerChange.up, kind: kind, physicalX: location.dx, physicalY: location.dy), - ] + ], ); final List events = PointerEventConverter.expand( @@ -296,7 +296,7 @@ void main() { ui.PointerData(change: ui.PointerChange.down, kind: kind, physicalX: location.dx, physicalY: location.dy), ui.PointerData(change: ui.PointerChange.move, buttons: kSecondaryStylusButton, kind: kind, physicalX: location.dx, physicalY: location.dy), ui.PointerData(change: ui.PointerChange.up, kind: kind, physicalX: location.dx, physicalY: location.dy), - ] + ], ); final List events = PointerEventConverter.expand( @@ -328,7 +328,7 @@ void main() { ui.PointerData(change: ui.PointerChange.down, kind: kind, physicalX: location.dx, physicalY: location.dy), ui.PointerData(change: ui.PointerChange.move, kind: kind, physicalX: location.dx, physicalY: location.dy), ui.PointerData(change: ui.PointerChange.up, kind: kind, physicalX: location.dx, physicalY: location.dy), - ] + ], ); final List events = PointerEventConverter.expand( @@ -361,7 +361,7 @@ void main() { ui.PointerData(change: ui.PointerChange.down, kind: kind, buttons: kMiddleMouseButton, physicalX: location.dx, physicalY: location.dy), ui.PointerData(change: ui.PointerChange.move, kind: kind, buttons: kMiddleMouseButton | kSecondaryMouseButton, physicalX: location.dx, physicalY: location.dy), ui.PointerData(change: ui.PointerChange.up, kind: kind, physicalX: location.dx, physicalY: location.dy), - ] + ], ); final List events = PointerEventConverter.expand( diff --git a/packages/flutter/test/gestures/locking_test.dart b/packages/flutter/test/gestures/locking_test.dart index 3de144aac3b..ba809ebd395 100644 --- a/packages/flutter/test/gestures/locking_test.dart +++ b/packages/flutter/test/gestures/locking_test.dart @@ -26,7 +26,7 @@ class TestGestureFlutterBinding extends BindingBase with GestureBinding { data: [ ui.PointerData(change: ui.PointerChange.down), ui.PointerData(change: ui.PointerChange.up), - ] + ], ); Future test(VoidCallback callback) { diff --git a/packages/flutter/test/gestures/transformed_double_tap.dart b/packages/flutter/test/gestures/transformed_double_tap.dart index f9423b4b876..02d4febe405 100644 --- a/packages/flutter/test/gestures/transformed_double_tap.dart +++ b/packages/flutter/test/gestures/transformed_double_tap.dart @@ -28,7 +28,7 @@ void main() { ), ), ), - ) + ), ); // Move just below kTouchSlop should recognize tap. @@ -72,7 +72,7 @@ void main() { ), ), ), - ) + ), ); // Move just below kTouchSlop should recognize tap. diff --git a/packages/flutter/test/gestures/transformed_long_press_test.dart b/packages/flutter/test/gestures/transformed_long_press_test.dart index a7b2a22f287..768dacc6f51 100644 --- a/packages/flutter/test/gestures/transformed_long_press_test.dart +++ b/packages/flutter/test/gestures/transformed_long_press_test.dart @@ -41,7 +41,7 @@ void main() { color: Colors.red, ), ), - ) + ), ); await tester.longPressAt(tester.getCenter(find.byKey(redContainer))); @@ -90,7 +90,7 @@ void main() { ), ), ), - ) + ), ); TestGesture gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer))); @@ -165,7 +165,7 @@ void main() { ), ), ), - ) + ), ); TestGesture gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer))); diff --git a/packages/flutter/test/gestures/transformed_tap_test.dart b/packages/flutter/test/gestures/transformed_tap_test.dart index b6163e6f913..aaede462587 100644 --- a/packages/flutter/test/gestures/transformed_tap_test.dart +++ b/packages/flutter/test/gestures/transformed_tap_test.dart @@ -37,7 +37,7 @@ void main() { color: Colors.red, ), ), - ) + ), ); await tester.tapAt(tester.getCenter(find.byKey(redContainer))); @@ -81,7 +81,7 @@ void main() { ), ), ), - ) + ), ); // Move just below kTouchSlop should recognize tap. @@ -144,7 +144,7 @@ void main() { ), ), ), - ) + ), ); // Move just below kTouchSlop should recognize tap. diff --git a/packages/flutter/test/material/app_bar_test.dart b/packages/flutter/test/material/app_bar_test.dart index 1cc013f990e..3a08ba1ea44 100644 --- a/packages/flutter/test/material/app_bar_test.dart +++ b/packages/flutter/test/material/app_bar_test.dart @@ -155,7 +155,7 @@ void main() { title: const Text('X'), ), ), - ) + ), ); final Finder title = find.text('X'); diff --git a/packages/flutter/test/material/app_test.dart b/packages/flutter/test/material/app_test.dart index 4135b2827ea..3ed7b9b5a96 100644 --- a/packages/flutter/test/material/app_test.dart +++ b/packages/flutter/test/material/app_test.dart @@ -236,7 +236,7 @@ void main() { '/a/b': (BuildContext context) => const Text('route "/a/b"'), '/b': (BuildContext context) => const Text('route "/b"'), }, - ) + ), ); expect(find.text('route "/"'), findsOneWidget); @@ -273,7 +273,7 @@ void main() { ); }, }, - ) + ), ); await tester.tap(find.text('X')); await tester.pump(); @@ -297,7 +297,7 @@ void main() { MaterialApp( initialRoute: '/a/b', routes: routes, - ) + ), ); expect(find.text('route "/"'), findsOneWidget); expect(find.text('route "/a"'), findsOneWidget); @@ -317,7 +317,7 @@ void main() { MaterialApp( initialRoute: '/a/b/c', routes: routes, - ) + ), ); final dynamic exception = tester.takeException(); expect(exception is String, isTrue); @@ -339,7 +339,7 @@ void main() { MaterialApp( initialRoute: '/a', routes: routes, - ) + ), ); expect(find.text('route "/"'), findsOneWidget); expect(find.text('route "/a"'), findsOneWidget); @@ -350,7 +350,7 @@ void main() { MaterialApp( initialRoute: '/b', routes: routes, - ) + ), ); expect(find.text('route "/"'), findsOneWidget); expect(find.text('route "/a"'), findsOneWidget); @@ -375,7 +375,7 @@ void main() { log.add('onUnknownRoute ${settings.name}'); return null; }, - ) + ), ); expect(tester.takeException(), isFlutterError); expect(log, ['onGenerateRoute /', 'onUnknownRoute /']); diff --git a/packages/flutter/test/material/back_button_test.dart b/packages/flutter/test/material/back_button_test.dart index 5334169764e..34d3f1cef96 100644 --- a/packages/flutter/test/material/back_button_test.dart +++ b/packages/flutter/test/material/back_button_test.dart @@ -20,7 +20,7 @@ void main() { ); }, }, - ) + ), ); tester.state(find.byType(Navigator)).pushNamed('/next'); @@ -48,7 +48,7 @@ void main() { ); }, }, - ) + ), ); tester.state(find.byType(Navigator)).pushNamed('/next'); diff --git a/packages/flutter/test/material/bottom_navigation_bar_test.dart b/packages/flutter/test/material/bottom_navigation_bar_test.dart index f2be0379223..6dfdcfcd265 100644 --- a/packages/flutter/test/material/bottom_navigation_bar_test.dart +++ b/packages/flutter/test/material/bottom_navigation_bar_test.dart @@ -35,7 +35,7 @@ void main() { }, ), ), - ) + ), ); await tester.tap(find.text('Alarm')); @@ -57,10 +57,10 @@ void main() { icon: Icon(Icons.access_alarm), title: Text('Alarm'), ), - ] + ], ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byType(BottomNavigationBar)); @@ -94,7 +94,7 @@ void main() { ], ), ), - ) + ), ); const double selectedFontSize = 14.0; @@ -146,7 +146,7 @@ void main() { ], ), ), - ) + ), ); final TextStyle selectedFontStyle = tester.renderObject(find.text('AC')).text.style; @@ -187,7 +187,7 @@ void main() { ], ), ), - ) + ), ); final TextStyle selectedFontStyle = tester.renderObject(find.text('AC')).text.style; @@ -221,7 +221,7 @@ void main() { ], ), ), - ) + ), ); final TextStyle selectedIcon = _iconStyle(tester, Icons.ac_unit); @@ -259,7 +259,7 @@ void main() { ], ), ), - ) + ), ); final TextStyle selectedFontStyle = tester.renderObject(find.text('AC')).text.style; @@ -303,7 +303,7 @@ void main() { ], ), ), - ) + ), ); final EdgeInsets selectedItemPadding = _itemPadding(tester, Icons.ac_unit); @@ -346,7 +346,7 @@ void main() { ], ), ), - ) + ), ); final EdgeInsets selectedItemPadding = _itemPadding(tester, Icons.ac_unit); @@ -388,7 +388,7 @@ void main() { ], ), ), - ) + ), ); final EdgeInsets selectedItemPadding = _itemPadding(tester, Icons.ac_unit); @@ -417,7 +417,7 @@ void main() { ], ), ), - ) + ), ); const double selectedFontSize = 14.0; @@ -460,7 +460,7 @@ void main() { ], ), ), - ) + ), ); expect(tester.renderObject(find.text('AC')).text.style.fontSize, selectedFontSize); @@ -509,7 +509,7 @@ void main() { ], ), ), - ) + ), ); expect(tester.renderObject(find.text('AC')).text.style.fontSize, selectedFontSize); @@ -536,7 +536,7 @@ void main() { ], ), ), - ) + ), ); expect(_getOpacity(tester, 'AC'), equals(1.0)); @@ -564,7 +564,7 @@ void main() { ], ), ), - ) + ), ); expect(_getMaterial(tester).color, equals(color)); @@ -593,7 +593,7 @@ void main() { ], ), ), - ) + ), ); expect(_getMaterial(tester).color, equals(itemColor)); @@ -642,7 +642,7 @@ void main() { ], ), ), - ) + ), ); expect(tester.renderObject(find.text('AC')).text.style.color, equals(fixedColor)); @@ -669,7 +669,7 @@ void main() { ], ), ), - ) + ), ); expect(_getMaterial(tester).elevation, equals(customElevation)); @@ -691,11 +691,11 @@ void main() { icon: Icon(Icons.access_alarm), title: Text('Alarm'), ), - ] + ], ), ), ), - ) + ), ); const double labelBottomMargin = 7.0; // 7 == defaulted selectedFontSize / 2.0. @@ -722,7 +722,7 @@ void main() { ], ), ), - ) + ), ); Iterable actions = tester.renderObjectList(find.byType(InkResponse)); @@ -748,7 +748,7 @@ void main() { ], ), ), - ) + ), ); await tester.pump(const Duration(milliseconds: 200)); @@ -785,7 +785,7 @@ void main() { ], ), ), - ) + ), ); // We want to make sure that the last label does not get displaced, @@ -847,7 +847,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.text('Alarm')); @@ -885,7 +885,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.text('Alarm')); @@ -1658,7 +1658,7 @@ double _getOpacity(WidgetTester tester, String textValue) { find.ancestor( of: find.text(textValue), matching: find.byType(FadeTransition), - ).first + ).first, ); return opacityWidget.opacity.value; } diff --git a/packages/flutter/test/material/bottom_sheet_test.dart b/packages/flutter/test/material/bottom_sheet_test.dart index 2339698290b..34db249f4a6 100644 --- a/packages/flutter/test/material/bottom_sheet_test.dart +++ b/packages/flutter/test/material/bottom_sheet_test.dart @@ -310,7 +310,7 @@ void main() { home: Scaffold( key: scaffoldKey, body: const Center(child: Text('body')), - ) + ), )); diff --git a/packages/flutter/test/material/button_bar_test.dart b/packages/flutter/test/material/button_bar_test.dart index fa3c625ea53..05200f8d422 100644 --- a/packages/flutter/test/material/button_bar_test.dart +++ b/packages/flutter/test/material/button_bar_test.dart @@ -25,7 +25,7 @@ void main() { SizedBox(width: 10.0, height: 10.0), ], ), - ) + ), ); final Finder child = find.byType(SizedBox); @@ -47,7 +47,7 @@ void main() { ], ), ), - ) + ), ); final Finder child = find.byType(SizedBox); @@ -70,7 +70,7 @@ void main() { ], ), ), - ) + ), ); final Finder child = find.byType(SizedBox); @@ -91,7 +91,7 @@ void main() { Container(), ], ), - ) + ), ); // ButtonBar uses a Row internally to implement this @@ -112,7 +112,7 @@ void main() { ], ), ), - ) + ), ); // ButtonBar uses a Row internally to implement this @@ -134,7 +134,7 @@ void main() { ], ), ), - ) + ), ); // ButtonBar uses a Row internally to implement this @@ -155,10 +155,10 @@ void main() { Builder(builder: (BuildContext context) { capturedContext = context; return Container(); - }) + }), ], ), - ) + ), ); final ButtonThemeData buttonTheme = ButtonTheme.of(capturedContext); expect(buttonTheme.textTheme, equals(ButtonTextTheme.primary)); @@ -187,11 +187,11 @@ void main() { Builder(builder: (BuildContext context) { capturedContext = context; return Container(); - }) + }), ], ), ), - ) + ), ); final ButtonThemeData buttonTheme = ButtonTheme.of(capturedContext); expect(buttonTheme.textTheme, equals(ButtonTextTheme.primary)); @@ -226,11 +226,11 @@ void main() { Builder(builder: (BuildContext context) { capturedContext = context; return Container(); - }) + }), ], ), ), - ) + ), ); final ButtonThemeData buttonTheme = ButtonTheme.of(capturedContext); expect(buttonTheme.textTheme, equals(ButtonTextTheme.primary)); diff --git a/packages/flutter/test/material/button_bar_theme_test.dart b/packages/flutter/test/material/button_bar_theme_test.dart index 89ed0225764..2dd846042a8 100644 --- a/packages/flutter/test/material/button_bar_theme_test.dart +++ b/packages/flutter/test/material/button_bar_theme_test.dart @@ -116,7 +116,7 @@ void main() { return Container(); } ), - ) + ), ); expect(ButtonBarTheme.of(capturedContext), equals(buttonBarTheme)); expect(ButtonBarTheme.of(capturedContext).buttonMinWidth, equals(42.0)); @@ -142,7 +142,7 @@ void main() { ); } ), - ) + ), ); expect(ButtonBarTheme.of(capturedContext), equals(buttonBarTheme)); expect(ButtonBarTheme.of(capturedContext).buttonMinWidth, equals(84.0)); diff --git a/packages/flutter/test/material/buttons_test.dart b/packages/flutter/test/material/buttons_test.dart index 99ae3b08a28..b813af2c374 100644 --- a/packages/flutter/test/material/buttons_test.dart +++ b/packages/flutter/test/material/buttons_test.dart @@ -610,7 +610,7 @@ void main() { SemanticsFlag.isEnabled, ], ), - ] + ], ), ignoreId: true, )); diff --git a/packages/flutter/test/material/chip_test.dart b/packages/flutter/test/material/chip_test.dart index ff1ba8fc549..457cdc87645 100644 --- a/packages/flutter/test/material/chip_test.dart +++ b/packages/flutter/test/material/chip_test.dart @@ -171,7 +171,7 @@ Future _pumpCheckmarkChip( ); }, ), - ) + ), ); } @@ -333,7 +333,7 @@ void main() { label: Text(text), onDeleted: onDeleted, ), - ] + ], ), ), ), @@ -1783,7 +1783,7 @@ void main() { matching: find.byWidgetPredicate((Widget widget) { return widget.runtimeType.toString() == '_ChipRenderWidget'; }), - ) + ), ); const Color selectScrimColor = Color(0x60191919); expect(rawChip, paints..path(color: selectScrimColor, includes: [ diff --git a/packages/flutter/test/material/date_picker_test.dart b/packages/flutter/test/material/date_picker_test.dart index 9bebabc8cc2..36b46e66f7f 100644 --- a/packages/flutter/test/material/date_picker_test.dart +++ b/packages/flutter/test/material/date_picker_test.dart @@ -707,7 +707,7 @@ void _tests() { ); }, ), - ) + ), ); final Finder chevronFinder = find.byType(IconButton); diff --git a/packages/flutter/test/material/flexible_space_bar_test.dart b/packages/flutter/test/material/flexible_space_bar_test.dart index e2b20edb98d..3058302bf49 100644 --- a/packages/flutter/test/material/flexible_space_bar_test.dart +++ b/packages/flutter/test/material/flexible_space_bar_test.dart @@ -17,7 +17,7 @@ void main() { ), ), ), - ) + ), ); final Finder title = find.text('X'); @@ -38,7 +38,7 @@ void main() { ), ), ), - ) + ), ); center = tester.getCenter(title); diff --git a/packages/flutter/test/material/floating_action_button_theme_test.dart b/packages/flutter/test/material/floating_action_button_theme_test.dart index ad3f2362ef5..d6ad4c886de 100644 --- a/packages/flutter/test/material/floating_action_button_theme_test.dart +++ b/packages/flutter/test/material/floating_action_button_theme_test.dart @@ -53,7 +53,7 @@ void main() { disabledElevation: disabledElevation, highlightElevation: highlightElevation, shape: shape, - ) + ), ), home: Scaffold( floatingActionButton: FloatingActionButton( diff --git a/packages/flutter/test/material/icon_button_test.dart b/packages/flutter/test/material/icon_button_test.dart index 4419a94178b..a97bc763fc9 100644 --- a/packages/flutter/test/material/icon_button_test.dart +++ b/packages/flutter/test/material/icon_button_test.dart @@ -299,7 +299,7 @@ void main() { ], label: 'link', ), - ] + ], ), ignoreId: true, ignoreTransform: true)); semantics.dispose(); @@ -327,7 +327,7 @@ void main() { ], label: 'link', ), - ] + ], ), ignoreId: true, ignoreTransform: true)); semantics.dispose(); diff --git a/packages/flutter/test/material/inherited_theme_test.dart b/packages/flutter/test/material/inherited_theme_test.dart index 128a861ddcb..07ea0673cc3 100644 --- a/packages/flutter/test/material/inherited_theme_test.dart +++ b/packages/flutter/test/material/inherited_theme_test.dart @@ -698,7 +698,7 @@ void main() { find.descendant( of: find.widgetWithText(RawMaterialButton, text), matching: find.byType(Material), - ) + ), ).color; } diff --git a/packages/flutter/test/material/input_decorator_test.dart b/packages/flutter/test/material/input_decorator_test.dart index 6d8aaf65183..f74699915cf 100644 --- a/packages/flutter/test/material/input_decorator_test.dart +++ b/packages/flutter/test/material/input_decorator_test.dart @@ -107,7 +107,7 @@ double getOpacity(WidgetTester tester, String textValue) { find.ancestor( of: find.text(textValue), matching: find.byType(FadeTransition), - ).first + ).first, ); return opacityWidget.opacity.value; } @@ -2564,7 +2564,7 @@ void main() { find.ancestor( of: find.text('label'), matching: find.byType(AnimatedDefaultTextStyle), - ) + ), ).style; } expect(getLabelStyle().color, labelStyle.color); @@ -2667,7 +2667,7 @@ void main() { focusColor: Colors.blue, border: InputBorder.none, alignLabelWithHint: true, - ) + ), ); expect(decoration.labelStyle, themeStyle); diff --git a/packages/flutter/test/material/list_tile_test.dart b/packages/flutter/test/material/list_tile_test.dart index e3777a4ef64..d60be79f84a 100644 --- a/packages/flutter/test/material/list_tile_test.dart +++ b/packages/flutter/test/material/list_tile_test.dart @@ -392,7 +392,7 @@ void main() { SemanticsFlag.hasEnabledState, ], ), - ] + ], ), ignoreTransform: true, ignoreId: true, ignoreRect: true), ); diff --git a/packages/flutter/test/material/material_test.dart b/packages/flutter/test/material/material_test.dart index 61891118c5d..60b4fe69c04 100644 --- a/packages/flutter/test/material/material_test.dart +++ b/packages/flutter/test/material/material_test.dart @@ -225,8 +225,8 @@ void main() { applyElevationOverlayColor: false, colorScheme: const ColorScheme.dark().copyWith(surface: surfaceColor), ), - child: buildMaterial(color: surfaceColor, elevation: 8.0)) - ); + child: buildMaterial(color: surfaceColor, elevation: 8.0), + )); final RenderPhysicalShape model = getModel(tester); expect(model.color, equals(surfaceColor)); }); @@ -259,7 +259,7 @@ void main() { color: surfaceColor, elevation: test.elevation, ), - ) + ), ); await tester.pumpAndSettle(); // wait for the elevation animation to finish final RenderPhysicalShape model = getModel(tester); @@ -278,7 +278,7 @@ void main() { color: Colors.cyan, elevation: 8.0, ), - ) + ), ); final RenderPhysicalShape model = getModel(tester); expect(model.color, equals(Colors.cyan)); @@ -294,7 +294,7 @@ void main() { key: materialKey, type: MaterialType.transparency, child: const SizedBox(width: 100.0, height: 100.0), - ) + ), ); expect(find.byKey(materialKey), hasNoImmediateClip); @@ -309,7 +309,7 @@ void main() { type: MaterialType.transparency, child: const SizedBox(width: 100.0, height: 100.0), clipBehavior: null, - ) + ), ); } @@ -324,7 +324,7 @@ void main() { type: MaterialType.transparency, child: const SizedBox(width: 100.0, height: 100.0), clipBehavior: Clip.antiAlias, - ) + ), ); expect(find.byKey(materialKey), clipsWithBoundingRect); @@ -339,7 +339,7 @@ void main() { borderRadius: const BorderRadius.all(Radius.circular(10.0)), child: const SizedBox(width: 100.0, height: 100.0), clipBehavior: Clip.antiAlias, - ) + ), ); expect( @@ -359,7 +359,7 @@ void main() { shape: const StadiumBorder(), child: const SizedBox(width: 100.0, height: 100.0), clipBehavior: Clip.antiAlias, - ) + ), ); expect( @@ -442,7 +442,7 @@ void main() { key: materialKey, type: MaterialType.canvas, child: const SizedBox(width: 100.0, height: 100.0), - ) + ), ); expect(find.byKey(materialKey), rendersOnPhysicalModel( @@ -461,7 +461,7 @@ void main() { borderRadius: const BorderRadius.all(Radius.circular(5.0)), child: const SizedBox(width: 100.0, height: 100.0), elevation: 1.0, - ) + ), ); expect(find.byKey(materialKey), rendersOnPhysicalModel( @@ -480,7 +480,7 @@ void main() { shape: const StadiumBorder(), child: const SizedBox(width: 100.0, height: 100.0), elevation: 1.0, - ) + ), ); expect(find.byKey(materialKey), rendersOnPhysicalShape( @@ -496,7 +496,7 @@ void main() { key: materialKey, type: MaterialType.card, child: const SizedBox(width: 100.0, height: 100.0), - ) + ), ); expect(find.byKey(materialKey), rendersOnPhysicalModel( @@ -515,7 +515,7 @@ void main() { borderRadius: const BorderRadius.all(Radius.circular(5.0)), elevation: 5.0, child: const SizedBox(width: 100.0, height: 100.0), - ) + ), ); expect(find.byKey(materialKey), rendersOnPhysicalModel( @@ -534,7 +534,7 @@ void main() { shape: const StadiumBorder(), elevation: 5.0, child: const SizedBox(width: 100.0, height: 100.0), - ) + ), ); expect(find.byKey(materialKey), rendersOnPhysicalShape( @@ -551,7 +551,7 @@ void main() { type: MaterialType.circle, child: const SizedBox(width: 100.0, height: 100.0), color: const Color(0xFF0000FF), - ) + ), ); expect(find.byKey(materialKey), rendersOnPhysicalModel( @@ -568,7 +568,7 @@ void main() { type: MaterialType.button, child: const SizedBox(width: 100.0, height: 100.0), color: const Color(0xFF0000FF), - ) + ), ); expect(find.byKey(materialKey), rendersOnPhysicalModel( @@ -588,7 +588,7 @@ void main() { color: const Color(0xFF0000FF), borderRadius: const BorderRadius.all(Radius.circular(6.0)), elevation: 4.0, - ) + ), ); expect(find.byKey(materialKey), rendersOnPhysicalModel( @@ -608,7 +608,7 @@ void main() { color: const Color(0xFF0000FF), shape: const StadiumBorder(), elevation: 4.0, - ) + ), ); expect(find.byKey(materialKey), rendersOnPhysicalShape( @@ -633,7 +633,7 @@ void main() { color: Color(0xFF0000FF), ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byKey(materialKey)); @@ -653,7 +653,7 @@ void main() { color: Color(0xFF0000FF), ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byKey(materialKey)); @@ -668,7 +668,7 @@ void main() { type: MaterialType.transparency, child: const SizedBox(width: 100.0, height: 100.0), shape: const CircleBorder(), - ) + ), ); final RenderBox box = tester.renderObject(find.byKey(materialKey)); diff --git a/packages/flutter/test/material/mergeable_material_test.dart b/packages/flutter/test/material/mergeable_material_test.dart index 65664dffcbf..008e90fb3f5 100644 --- a/packages/flutter/test/material/mergeable_material_test.dart +++ b/packages/flutter/test/material/mergeable_material_test.dart @@ -404,11 +404,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byType(MergeableMaterial)); @@ -439,11 +439,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); await tester.pump(const Duration(milliseconds: 100)); @@ -478,11 +478,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); await tester.pump(const Duration(milliseconds: 100)); @@ -520,11 +520,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); await tester.pump(const Duration(milliseconds: 100)); @@ -561,11 +561,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byType(MergeableMaterial)); @@ -600,11 +600,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); expect(box.size.height, equals(300)); @@ -640,11 +640,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byType(MergeableMaterial)); @@ -672,11 +672,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); await tester.pump(); @@ -706,11 +706,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byType(MergeableMaterial)); @@ -751,11 +751,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); await tester.pump(const Duration(milliseconds: 100)); @@ -807,11 +807,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byType(MergeableMaterial)); @@ -841,11 +841,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); await tester.pump(const Duration(milliseconds: 100)); @@ -885,11 +885,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byType(MergeableMaterial)); @@ -931,11 +931,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); await tester.pump(const Duration(milliseconds: 100)); @@ -987,11 +987,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byType(MergeableMaterial)); @@ -1024,11 +1024,11 @@ void main() { height: 100.0, ), ), - ] + ], ), ), ), - ) + ), ); await tester.pump(const Duration(milliseconds: 100)); @@ -1096,7 +1096,7 @@ void main() { ), ), ), - ) + ), ); List boxes = tester.widgetList(find.byType(DecoratedBox)).toList(); @@ -1149,7 +1149,7 @@ void main() { ), ), ), - ) + ), ); // Wait for dividers to shrink. diff --git a/packages/flutter/test/material/page_selector_test.dart b/packages/flutter/test/material/page_selector_test.dart index 237b11a1fc9..08401013fdf 100644 --- a/packages/flutter/test/material/page_selector_test.dart +++ b/packages/flutter/test/material/page_selector_test.dart @@ -50,7 +50,7 @@ List indicatorColors(WidgetTester tester) { find.descendant( of: find.byType(TabPageSelector), matching: find.byType(TabPageSelectorIndicator), - ) + ), ); return indicators.map((TabPageSelectorIndicator indicator) => indicator.backgroundColor).toList(); } diff --git a/packages/flutter/test/material/page_test.dart b/packages/flutter/test/material/page_test.dart index 0addcf19921..2c52ce394c1 100644 --- a/packages/flutter/test/material/page_test.dart +++ b/packages/flutter/test/material/page_test.dart @@ -19,7 +19,7 @@ void main() { return const Material(child: Text('Page 2')); }, }, - ) + ), ); final Offset widget1TopLeft = tester.getTopLeft(find.text('Page 1')); @@ -81,7 +81,7 @@ void main() { ); }, }, - ) + ), ); final Offset widget1InitialTopLeft = tester.getTopLeft(find.text('Page 1')); @@ -151,7 +151,7 @@ void main() { MaterialApp( theme: ThemeData(platform: TargetPlatform.iOS), home: const Material(child: Text('Page 1')), - ) + ), ); final Offset widget1InitialTopLeft = tester.getTopLeft(find.text('Page 1')); @@ -217,7 +217,7 @@ void main() { return const Scaffold(body: Text('Page 2')); }, }, - ) + ), ); tester.state(find.byType(Navigator)).pushNamed('/next'); @@ -248,7 +248,7 @@ void main() { return const Scaffold(body: Text('Page 2')); }, }, - ) + ), ); tester.state(find.byType(Navigator)).pushNamed('/next'); @@ -352,7 +352,7 @@ void main() { MaterialApp( theme: ThemeData(platform: TargetPlatform.iOS), home: const Scaffold(body: Text('Page 1')), - ) + ), ); tester.state(find.byType(Navigator)).push(MaterialPageRoute( @@ -388,7 +388,7 @@ void main() { return const Material(child: Text('Page 2')); }, }, - ) + ), ); final Offset widget1InitialTopLeft = tester.getTopLeft(find.text('Page 1')); @@ -423,7 +423,7 @@ void main() { return const Material(child: Text('Page 2')); }, }, - ) + ), ); tester.state(find.byType(Navigator)).pop(); diff --git a/packages/flutter/test/material/persistent_bottom_sheet_test.dart b/packages/flutter/test/material/persistent_bottom_sheet_test.dart index 297aa7c55bc..1c941c28d8d 100644 --- a/packages/flutter/test/material/persistent_bottom_sheet_test.dart +++ b/packages/flutter/test/material/persistent_bottom_sheet_test.dart @@ -52,7 +52,7 @@ void main() { ); }, ), - ) + ), )); await tester.pumpAndSettle(); @@ -104,7 +104,7 @@ void main() { home: Scaffold( key: scaffoldKey, body: const Center(child: Text('body')), - ) + ), )); scaffoldKey.currentState.showBottomSheet( @@ -258,7 +258,7 @@ void main() { onPressed: null, child: Text('fab'), ), - ) + ), )); scaffoldKey.currentState.showBottomSheet( @@ -467,7 +467,7 @@ void main() { home: Scaffold( key: scaffoldKey, body: const Center(child: Text('body')), - ) + ), )); final PersistentBottomSheetController bottomSheet = scaffoldKey.currentState.showBottomSheet((_) { diff --git a/packages/flutter/test/material/popup_menu_test.dart b/packages/flutter/test/material/popup_menu_test.dart index 3e6826405dc..5e13c250fb5 100644 --- a/packages/flutter/test/material/popup_menu_test.dart +++ b/packages/flutter/test/material/popup_menu_test.dart @@ -684,7 +684,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.text('Menu Button')); diff --git a/packages/flutter/test/material/progress_indicator_test.dart b/packages/flutter/test/material/progress_indicator_test.dart index 59702ddf55a..8b77bce707b 100644 --- a/packages/flutter/test/material/progress_indicator_test.dart +++ b/packages/flutter/test/material/progress_indicator_test.dart @@ -182,7 +182,7 @@ void main() { child: Center( child: CircularProgressIndicator(value: 0.0), ), - ) + ), ); expect(tester.getSemantics(find.byType(CircularProgressIndicator)), matchesSemantics( @@ -197,7 +197,7 @@ void main() { await tester.pumpWidget( const Center( child: CircularProgressIndicator(value: null), - ) + ), ); expect(tester.getSemantics(find.byType(CircularProgressIndicator)), matchesSemantics()); @@ -288,7 +288,7 @@ void main() { } ), ), - ) + ), ); expect(tester.hasRunningAnimations, isTrue); diff --git a/packages/flutter/test/material/raw_material_button_test.dart b/packages/flutter/test/material/raw_material_button_test.dart index 4f07e66bb2a..bed44b050aa 100644 --- a/packages/flutter/test/material/raw_material_button_test.dart +++ b/packages/flutter/test/material/raw_material_button_test.dart @@ -25,7 +25,7 @@ void main() { materialTapTargetSize: MaterialTapTargetSize.padded, child: const Text('+'), ), - ) + ), ); await tester.tapAt(const Offset(40.0, 400.0)); @@ -67,7 +67,7 @@ void main() { rect: const Rect.fromLTRB(0.0, 0.0, 48.0, 48.0), children: [], ), - ] + ], ), ignoreTransform: true, )); diff --git a/packages/flutter/test/material/scaffold_test.dart b/packages/flutter/test/material/scaffold_test.dart index 123b07bce3f..181a1819af5 100644 --- a/packages/flutter/test/material/scaffold_test.dart +++ b/packages/flutter/test/material/scaffold_test.dart @@ -103,8 +103,8 @@ void main() { ), child: Scaffold( body: Container(key: bodyKey), - )) - )); + ), + ))); final RenderBox bodyBox = tester.renderObject(find.byKey(bodyKey)); expect(bodyBox.size, equals(const Size(800.0, 0.0))); @@ -219,7 +219,7 @@ void main() { padding: EdgeInsets.only(bottom: 20.0), ), child: child, - ) + ), ); final Offset initialPoint = tester.getCenter(find.byType(Placeholder)); // Consume bottom padding - as if by the keyboard opening @@ -275,7 +275,7 @@ void main() { ], ), ), - ) + ), ); final ScaffoldState state = tester.firstState(find.byType(Scaffold)); @@ -398,7 +398,7 @@ void main() { padding: EdgeInsets.only(bottom: 20.0), ), child: child, - ) + ), ); final Offset initialPoint = tester.getCenter(find.byType(Placeholder)); // Consume bottom padding - as if by the keyboard opening @@ -487,7 +487,7 @@ void main() { padding: EdgeInsets.only(bottom: 20.0), ), child: child, - ) + ), ); final Offset initialPoint = tester.getCenter(find.byType(Placeholder)); // Consume bottom padding - as if by the keyboard opening @@ -546,7 +546,7 @@ void main() { MaterialApp( theme: ThemeData(platform: platform), home: Scaffold(appBar: AppBar(), body: const Text('Page 1')), - ) + ), ); tester.state(find.byType(Navigator)).push(routeBuilder()); @@ -1155,7 +1155,7 @@ void main() { icon: Icon(Icons.add), title: Text('test'), ), - ] + ], ), ), ); diff --git a/packages/flutter/test/material/scrollbar_test.dart b/packages/flutter/test/material/scrollbar_test.dart index 017b85f78cf..32fb7b08abe 100644 --- a/packages/flutter/test/material/scrollbar_test.dart +++ b/packages/flutter/test/material/scrollbar_test.dart @@ -59,8 +59,8 @@ void main() { ), ), ), - ) - ) + ), + ), ); SchedulerBinding.instance.debugAssertNoTransientCallbacks('Building a list with a scrollbar triggered an animation.'); @@ -90,13 +90,13 @@ void main() { ], ), ), - )) + )), ); final CustomPaint custom = tester.widget(find.descendant( of: find.byType(Scrollbar), - matching: find.byType(CustomPaint)).first - ); + matching: find.byType(CustomPaint), + ).first); final dynamic scrollPainter = custom.foregroundPainter; // Dragging makes the scrollbar first appear. await tester.drag(find.text('0'), const Offset(0.0, -10.0)); diff --git a/packages/flutter/test/material/snack_bar_test.dart b/packages/flutter/test/material/snack_bar_test.dart index 0e5c1a32e15..db5d963bca6 100644 --- a/packages/flutter/test/material/snack_bar_test.dart +++ b/packages/flutter/test/material/snack_bar_test.dart @@ -742,7 +742,7 @@ void main() { content: const Text('I am a snack bar.'), duration: const Duration(seconds: 2), action: SnackBarAction(label: 'ACTION', onPressed: () {}), - ) + ), ); }, child: const Text('X'), @@ -757,7 +757,7 @@ void main() { padding: EdgeInsets.only(bottom: 20.0), ), child: child, - ) + ), ); await tester.tap(find.text('X')); await tester.pumpAndSettle(); // Show snackbar diff --git a/packages/flutter/test/material/tabs_test.dart b/packages/flutter/test/material/tabs_test.dart index 40c605684f5..cc95e72b3e7 100644 --- a/packages/flutter/test/material/tabs_test.dart +++ b/packages/flutter/test/material/tabs_test.dart @@ -1009,7 +1009,7 @@ void main() { ], ), ), - ) + ), ); // expect first tab to be selected diff --git a/packages/flutter/test/material/text_field_splash_test.dart b/packages/flutter/test/material/text_field_splash_test.dart index d03a824c807..3cb8af0d39f 100644 --- a/packages/flutter/test/material/text_field_splash_test.dart +++ b/packages/flutter/test/material/text_field_splash_test.dart @@ -119,7 +119,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.byKey(textField1)); @@ -174,7 +174,7 @@ void main() { ), ), ), - ) + ), ); // If there were a splash, this would cancel the splash. diff --git a/packages/flutter/test/material/text_field_test.dart b/packages/flutter/test/material/text_field_test.dart index 226a2c7d767..f44b38fc3b5 100644 --- a/packages/flutter/test/material/text_field_test.dart +++ b/packages/flutter/test/material/text_field_test.dart @@ -83,7 +83,7 @@ Widget overlayWithEntry(OverlayEntry entry) { data: const MediaQueryData(size: Size(800.0, 600.0)), child: Overlay( initialEntries: [ - entry + entry, ], ), ), @@ -124,7 +124,7 @@ double getOpacity(WidgetTester tester, Finder finder) { find.ancestor( of: finder, matching: find.byType(FadeTransition), - ) + ), ).opacity.value; } @@ -237,7 +237,7 @@ void main() { textFieldValue = value; }, ), - ) + ), ); RenderBox findTextFieldBox() => tester.renderObject(find.byKey(textFieldKey)); @@ -368,7 +368,7 @@ void main() { overlay( child: const TextField( ), - ) + ), ); final TextField textField = tester.firstWidget(find.byType(TextField)); @@ -382,7 +382,7 @@ void main() { child: const TextField( cursorRadius: Radius.circular(3.0), ), - ) + ), ); final TextField textField = tester.firstWidget(find.byType(TextField)); @@ -561,7 +561,7 @@ void main() { controller: controller, maxLines: null, ), - ) + ), ); expect(controller.selection.baseOffset, -1); expect(controller.selection.extentOffset, -1); @@ -675,7 +675,7 @@ void main() { child: TextField( controller: controller, ), - ) + ), ); expect(controller.selection.baseOffset, -1); expect(controller.selection.extentOffset, -1); @@ -703,7 +703,7 @@ void main() { controller: controller, enableInteractiveSelection: false, ), - ) + ), ); expect(controller.selection.baseOffset, -1); expect(controller.selection.extentOffset, -1); @@ -730,7 +730,7 @@ void main() { child: TextField( controller: controller, ), - ) + ), ); const String testValue = 'abc def ghi'; @@ -765,7 +765,7 @@ void main() { child: TextField( controller: controller, ), - ) + ), ); const String testValue = 'abc def ghi'; @@ -804,7 +804,7 @@ void main() { child: TextField( controller: controller, ), - ) + ), ); const String testValue = 'abcdefghi'; @@ -844,7 +844,7 @@ void main() { child: TextField( controller: controller, ), - ) + ), ); const String testValue = 'abc def ghi'; @@ -877,7 +877,7 @@ void main() { controller: controller, readOnly: true, ), - ) + ), ); // Read only text field cannot open keyboard. await tester.showKeyboard(find.byType(TextField)); @@ -913,7 +913,7 @@ void main() { readOnly: true, ), ), - ) + ), ); await tester.tap(find.byType(TextField)); @@ -934,7 +934,7 @@ void main() { readOnly: true, ), ), - ) + ), ); await tester.tap(find.byType(TextField)); @@ -997,7 +997,7 @@ void main() { const TextEditingValue( text: 'readonly', composing: TextRange(start: 0, end: 8), // Simulate text composing. - ) + ), ); await tester.pumpWidget( @@ -1006,7 +1006,7 @@ void main() { controller: controller, readOnly: true, ), - ) + ), ); final RenderEditable renderEditable = findRenderEditable(tester); @@ -1112,7 +1112,7 @@ void main() { controller: controller, enableInteractiveSelection: false, ), - ) + ), ); const String testValue = 'abc def ghi'; @@ -3702,7 +3702,7 @@ void main() { controller: controller, readOnly: true, ), - ) + ), ); await tester.idle(); @@ -4141,7 +4141,7 @@ void main() { controller: controller, maxLines: null, ), - ) + ), ); const String testValue = 'x'; diff --git a/packages/flutter/test/material/text_selection_test.dart b/packages/flutter/test/material/text_selection_test.dart index a143a00756c..be6909542f1 100644 --- a/packages/flutter/test/material/text_selection_test.dart +++ b/packages/flutter/test/material/text_selection_test.dart @@ -23,7 +23,7 @@ void main() { style: const TextStyle(), cursorColor: Colors.black, backgroundCursorColor: Colors.black, - ) + ), ); } diff --git a/packages/flutter/test/material/theme_test.dart b/packages/flutter/test/material/theme_test.dart index fd9da80ed4f..0896d447fb5 100644 --- a/packages/flutter/test/material/theme_test.dart +++ b/packages/flutter/test/material/theme_test.dart @@ -38,7 +38,7 @@ void main() { ], ), ), - ) + ), ); await tester.tap(find.byKey(popupMenuButtonKey)); @@ -108,7 +108,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.byKey(popupMenuButtonKey)); @@ -142,7 +142,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.byKey(dropdownMenuButtonKey)); @@ -176,7 +176,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.text('SHOW')); @@ -213,7 +213,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.text('SHOW')); @@ -251,7 +251,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.text('SHOW')); @@ -268,7 +268,7 @@ void main() { MaterialApp( theme: ThemeData(iconTheme: const IconThemeData(color: Colors.green, size: 10.0)), home: const Icon(Icons.computer), - ) + ), ); RenderParagraph glyphText = tester.renderObject(find.byType(RichText)); @@ -338,7 +338,7 @@ void main() { primaryTextTheme: fallback.primaryTextTheme.copyWith( body1: fallback.primaryTextTheme.body1.copyWith( fontSize: _kMagicFontSize, - ) + ), ), ); expect(customTheme.primaryTextTheme.body1.fontSize, _kMagicFontSize); diff --git a/packages/flutter/test/material/tooltip_test.dart b/packages/flutter/test/material/tooltip_test.dart index e88d6d9c246..9f68ac3d675 100644 --- a/packages/flutter/test/material/tooltip_test.dart +++ b/packages/flutter/test/material/tooltip_test.dart @@ -700,7 +700,7 @@ void main() { ), ), ), - ) + ), ); final Finder tooltip = find.byType(Tooltip); @@ -758,7 +758,7 @@ void main() { ), ), ), - ) + ), ); final Finder tooltip = find.byType(Tooltip); @@ -824,7 +824,7 @@ void main() { label: 'TIP', textDirection: TextDirection.ltr, ), - ] + ], ); expect(semantics, hasSemantics(expected, ignoreTransform: true, ignoreRect: true)); diff --git a/packages/flutter/test/material/tooltip_theme_test.dart b/packages/flutter/test/material/tooltip_theme_test.dart index ea09f04783f..7cdd56dbbdf 100644 --- a/packages/flutter/test/material/tooltip_theme_test.dart +++ b/packages/flutter/test/material/tooltip_theme_test.dart @@ -847,7 +847,7 @@ void main() { ), ), ), - ) + ), ); final Finder tooltip = find.byType(Tooltip); @@ -891,7 +891,7 @@ void main() { ), ), ), - ) + ), ); final Finder tooltip = find.byType(Tooltip); @@ -932,7 +932,7 @@ void main() { ), ), ), - ) + ), ); final Finder tooltip = find.byType(Tooltip); @@ -965,7 +965,7 @@ void main() { ), ), ), - ) + ), ); final Finder tooltip = find.byType(Tooltip); diff --git a/packages/flutter/test/painting/image_resolution_test.dart b/packages/flutter/test/painting/image_resolution_test.dart index f3f8796222d..dae5e10b17d 100644 --- a/packages/flutter/test/painting/image_resolution_test.dart +++ b/packages/flutter/test/painting/image_resolution_test.dart @@ -139,7 +139,7 @@ void main() { assetImage.obtainKey(ImageConfiguration( bundle: testAssetBundle, - devicePixelRatio: 3.0) + devicePixelRatio: 3.0), ).then(expectAsync1((AssetBundleImageKey bundleKey) { expect(bundleKey.name, mainAssetPath); expect(bundleKey.scale, 1.0); @@ -172,7 +172,7 @@ void main() { // we have 1.0 and 3.0, asking for 1.5 should give assetImage.obtainKey(ImageConfiguration( bundle: testAssetBundle, - devicePixelRatio: deviceRatio) + devicePixelRatio: deviceRatio), ).then(expectAsync1((AssetBundleImageKey bundleKey) { expect(bundleKey.name, expectedAssetPath); expect(bundleKey.scale, chosenAssetRatio); diff --git a/packages/flutter/test/painting/system_fonts_test.dart b/packages/flutter/test/painting/system_fonts_test.dart index 58ec8028fb9..508eeaf5be2 100644 --- a/packages/flutter/test/painting/system_fonts_test.dart +++ b/packages/flutter/test/painting/system_fonts_test.dart @@ -15,7 +15,7 @@ void main() { await tester.pumpWidget( const MaterialApp( home: Text('text widget'), - ) + ), ); const Map data = { 'type': 'fontsChange', @@ -33,7 +33,7 @@ void main() { await tester.pumpWidget( const MaterialApp( home: SelectableText('text widget'), - ) + ), ); const Map data = { 'type': 'fontsChange', @@ -54,8 +54,7 @@ void main() { location: BannerLocation.topStart, textDirection: TextDirection.ltr, layoutDirection: TextDirection.ltr, - - ) + ), ); const Map data = { 'type': 'fontsChange', @@ -74,8 +73,8 @@ void main() { CupertinoApp( home: CupertinoDatePicker( onDateTimeChanged: (DateTime dateTime) { }, - ) - ) + ), + ), ); final dynamic state = tester.state(find.byType(CupertinoDatePicker)); final Map cache = state.estimatedColumnWidths; @@ -100,8 +99,8 @@ void main() { home: CupertinoDatePicker( mode: CupertinoDatePickerMode.date, onDateTimeChanged: (DateTime dateTime) { }, - ) - ) + ), + ), ); final dynamic state = tester.state(find.byType(CupertinoDatePicker)); final Map cache = state.estimatedColumnWidths; @@ -126,8 +125,8 @@ void main() { CupertinoApp( home: CupertinoTimerPicker( onTimerDurationChanged: (Duration d) { }, - ) - ) + ), + ), ); final dynamic state = tester.state(find.byType(CupertinoTimerPicker)); // Simulates wrong metrics due to font missing. @@ -159,7 +158,7 @@ void main() { onChanged: (RangeValues values) { }, ), ), - ) + ), ); const Map data = { 'type': 'fontsChange', @@ -182,7 +181,7 @@ void main() { onChanged: (double value) { }, ), ), - ) + ), ); const Map data = { 'type': 'fontsChange', @@ -223,7 +222,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.text('X')); await tester.pumpAndSettle(); @@ -239,7 +238,7 @@ void main() { find.descendant( of: find.byKey(const Key('parent')), matching: find.byType(CustomPaint), - ).first + ).first, ); expect(renderObject.debugNeedsPaint, isTrue); }); diff --git a/packages/flutter/test/painting/text_span_test.dart b/packages/flutter/test/painting/text_span_test.dart index 17dabd6acb1..2ceae4ffbad 100644 --- a/packages/flutter/test/painting/text_span_test.dart +++ b/packages/flutter/test/painting/text_span_test.dart @@ -180,7 +180,7 @@ void main() { WidgetSpan(child: SizedBox(width: 10, height: 10)), TextSpan(text: 'The sky is falling :)'), ], - ) + ), ), ), TextSpan(text: 'c'), @@ -198,7 +198,7 @@ void main() { WidgetSpan(child: SizedBox(width: 10, height: 11)), TextSpan(text: 'The sky is falling :)'), ], - ) + ), ), ), TextSpan(text: 'c'), diff --git a/packages/flutter/test/rendering/localized_fonts_test.dart b/packages/flutter/test/rendering/localized_fonts_test.dart index e269699bb3d..81a4ea0e772 100644 --- a/packages/flutter/test/rendering/localized_fonts_test.dart +++ b/packages/flutter/test/rendering/localized_fonts_test.dart @@ -44,7 +44,7 @@ void main() { ); }, ), - ) + ), ); await expectLater( @@ -98,7 +98,7 @@ void main() { ); }, ), - ) + ), ); await expectLater( @@ -144,7 +144,7 @@ void main() { ); }, ), - ) + ), ); await expectLater( diff --git a/packages/flutter/test/rendering/non_render_object_root_test.dart b/packages/flutter/test/rendering/non_render_object_root_test.dart index 8e90bd2eb26..7bccf768864 100644 --- a/packages/flutter/test/rendering/non_render_object_root_test.dart +++ b/packages/flutter/test/rendering/non_render_object_root_test.dart @@ -50,7 +50,7 @@ void main() { child = RenderPositionedBox( alignment: Alignment.center, child: RenderSizedBox(const Size(100.0, 100.0)), - ) + ), ); root.attach(PipelineOwner()); diff --git a/packages/flutter/test/rendering/repaint_boundary_test.dart b/packages/flutter/test/rendering/repaint_boundary_test.dart index 1b067bf1f49..958f2ab0ada 100644 --- a/packages/flutter/test/rendering/repaint_boundary_test.dart +++ b/packages/flutter/test/rendering/repaint_boundary_test.dart @@ -21,7 +21,7 @@ void main() { opacity: 1.0 ) ), - ) + ), ), ); layout(a, phase: EnginePhase.flushSemantics); diff --git a/packages/flutter/test/semantics/semantics_test.dart b/packages/flutter/test/semantics/semantics_test.dart index 401d6a086e5..4ac4856e654 100644 --- a/packages/flutter/test/semantics/semantics_test.dart +++ b/packages/flutter/test/semantics/semantics_test.dart @@ -74,7 +74,7 @@ void main() { final List children = [ SemanticsNode() ..isMergedIntoParent = true - ..rect = const Rect.fromLTRB(5.0, 5.0, 10.0, 10.0) + ..rect = const Rect.fromLTRB(5.0, 5.0, 10.0, 10.0), ]; node.updateWith( @@ -82,7 +82,7 @@ void main() { childrenInInversePaintOrder: children, ); - children.add( SemanticsNode() + children.add(SemanticsNode() ..isMergedIntoParent = true ..rect = const Rect.fromLTRB(42.0, 42.0, 10.0, 10.0) ); diff --git a/packages/flutter/test/widgets/animated_container_test.dart b/packages/flutter/test/widgets/animated_container_test.dart index e19de9d992d..a15e91ded8c 100644 --- a/packages/flutter/test/widgets/animated_container_test.dart +++ b/packages/flutter/test/widgets/animated_container_test.dart @@ -42,7 +42,7 @@ void main() { key: key, duration: const Duration(milliseconds: 200), decoration: decorationA, - ) + ), ); final RenderDecoratedBox box = key.currentContext.findRenderObject(); @@ -54,7 +54,7 @@ void main() { key: key, duration: const Duration(milliseconds: 200), decoration: decorationB, - ) + ), ); expect(key.currentContext.findRenderObject(), equals(box)); @@ -101,7 +101,7 @@ void main() { AnimatedContainer( duration: const Duration(milliseconds: 200), color: const Color(0xFF00FF00), - ) + ), ); expect(tester.binding.transientCallbackCount, 0); await tester.pump(const Duration(seconds: 1)); @@ -110,7 +110,7 @@ void main() { AnimatedContainer( duration: const Duration(milliseconds: 200), color: const Color(0xFF00FF00), - ) + ), ); expect(tester.binding.transientCallbackCount, 0); await tester.pump(const Duration(seconds: 1)); @@ -119,7 +119,7 @@ void main() { AnimatedContainer( duration: const Duration(milliseconds: 200), color: const Color(0xFF0000FF), - ) + ), ); expect(tester.binding.transientCallbackCount, 1); // this is the only time an animation should have started! await tester.pump(const Duration(seconds: 1)); @@ -128,7 +128,7 @@ void main() { AnimatedContainer( duration: const Duration(milliseconds: 200), color: const Color(0xFF0000FF), - ) + ), ); expect(tester.binding.transientCallbackCount, 0); }); @@ -226,7 +226,7 @@ void main() { height: 100.0, child: const Text('X', textDirection: TextDirection.ltr), ), - ) + ), ); await tester.pump(); @@ -246,7 +246,7 @@ void main() { height: 200.0, child: const Text('X', textDirection: TextDirection.ltr), ), - ) + ), ); await tester.pump(); await tester.pump(const Duration(milliseconds: 100)); @@ -270,7 +270,7 @@ void main() { height: 100.0, child: const Text('X', textDirection: TextDirection.ltr), ), - ) + ), ); await tester.pump(); await tester.pump(const Duration(milliseconds: 100)); diff --git a/packages/flutter/test/widgets/aspect_ratio_test.dart b/packages/flutter/test/widgets/aspect_ratio_test.dart index b56b147bcaf..8a5e52202db 100644 --- a/packages/flutter/test/widgets/aspect_ratio_test.dart +++ b/packages/flutter/test/widgets/aspect_ratio_test.dart @@ -19,7 +19,7 @@ Future _getSize(WidgetTester tester, BoxConstraints constraints, double as ), ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byKey(childKey)); return box.size; diff --git a/packages/flutter/test/widgets/backdrop_filter_test.dart b/packages/flutter/test/widgets/backdrop_filter_test.dart index db339be4da2..81f2597395c 100644 --- a/packages/flutter/test/widgets/backdrop_filter_test.dart +++ b/packages/flutter/test/widgets/backdrop_filter_test.dart @@ -39,7 +39,7 @@ void main() { ], ), ), - ) + ), ); await expectLater( find.byType(RepaintBoundary).first, diff --git a/packages/flutter/test/widgets/basic_test.dart b/packages/flutter/test/widgets/basic_test.dart index 8584faba45f..320d167ed07 100644 --- a/packages/flutter/test/widgets/basic_test.dart +++ b/packages/flutter/test/widgets/basic_test.dart @@ -17,7 +17,7 @@ void main() { elevation: 2.0, color: Color(0xFF0000FF), shadowColor: Color(0xFF00FF00), - ) + ), ); final RenderPhysicalShape renderObject = tester.renderObject(find.byType(PhysicalShape)); expect(renderObject.clipper, const ShapeBorderClipper(shape: CircleBorder())); @@ -34,7 +34,7 @@ void main() { color: const Color(0xFF0000FF), shadowColor: const Color(0xFF00FF00), child: Container(color: const Color(0xFF0000FF)), - ) + ), ); final RenderPhysicalShape renderPhysicalShape = @@ -79,7 +79,7 @@ void main() { ), ), ), - ) + ), ); expect(_pointerDown, isFalse); await tester.tap(find.byKey(key1)); @@ -109,7 +109,7 @@ void main() { ), ), ), - ) + ), ); expect(_pointerDown, isFalse); await tester.tap(find.byKey(key1)); @@ -139,7 +139,7 @@ void main() { ), ), ), - ) + ), ); expect(_pointerDown, isFalse); await tester.tap(find.byKey(key1)); diff --git a/packages/flutter/test/widgets/box_decoration_test.dart b/packages/flutter/test/widgets/box_decoration_test.dart index dee7ba75cb5..110fd3de3b9 100644 --- a/packages/flutter/test/widgets/box_decoration_test.dart +++ b/packages/flutter/test/widgets/box_decoration_test.dart @@ -100,7 +100,7 @@ Future main() async { border: Border.all(width: 10.0, color: const Color(0x80FF00FF)), color: Colors.teal[600], ), - ) + ), ); }); @@ -116,7 +116,7 @@ Future main() async { height: 25.0, ), ), - ) + ), ); expect(tester.getSize(find.byKey(key)), equals(const Size(45.0, 45.0))); }); diff --git a/packages/flutter/test/widgets/clip_test.dart b/packages/flutter/test/widgets/clip_test.dart index 6c2627b6a76..941f2098163 100644 --- a/packages/flutter/test/widgets/clip_test.dart +++ b/packages/flutter/test/widgets/clip_test.dart @@ -136,7 +136,7 @@ void main() { behavior: HitTestBehavior.opaque, onTap: () { log.add('tap'); }, ), - ) + ), ); expect(log, equals(['getClip'])); @@ -156,7 +156,7 @@ void main() { behavior: HitTestBehavior.opaque, onTap: () { log.add('tap'); }, ), - ) + ), ); expect(log, equals([])); @@ -179,7 +179,7 @@ void main() { onTap: () { log.add('tap'); }, ), ), - ) + ), ); expect(log, equals([])); @@ -207,7 +207,7 @@ void main() { ), ), ), - ) + ), ); expect(log, equals(['a'])); @@ -231,7 +231,7 @@ void main() { ), ), ), - ) + ), ); expect(log, equals(['a', 'tap'])); @@ -249,7 +249,7 @@ void main() { ), ), ), - ) + ), ); expect(log, equals(['a', 'tap', 'a'])); @@ -267,7 +267,7 @@ void main() { ), ), ), - ) + ), ); expect(log, equals(['a', 'tap', 'a'])); @@ -285,7 +285,7 @@ void main() { ), ), ), - ) + ), ); expect(log, equals(['a', 'tap', 'a', 'b'])); @@ -303,7 +303,7 @@ void main() { ), ), ), - ) + ), ); expect(log, equals(['a', 'tap', 'a', 'b', 'c'])); diff --git a/packages/flutter/test/widgets/color_filter_test.dart b/packages/flutter/test/widgets/color_filter_test.dart index 633000cb0ff..7822bbe28f0 100644 --- a/packages/flutter/test/widgets/color_filter_test.dart +++ b/packages/flutter/test/widgets/color_filter_test.dart @@ -54,7 +54,7 @@ void main() { ), ), ), - ) + ), ); await expectLater( find.byType(ColorFiltered), diff --git a/packages/flutter/test/widgets/editable_text_test.dart b/packages/flutter/test/widgets/editable_text_test.dart index cd497803501..4ff39a84348 100644 --- a/packages/flutter/test/widgets/editable_text_test.dart +++ b/packages/flutter/test/widgets/editable_text_test.dart @@ -311,7 +311,7 @@ void main() { final TextEditingController controller = TextEditingController.fromValue( const TextEditingValue( text: 'initial value', - ) + ), ); Future pumpEditableTextWithTextStyle(TextStyle style) async { await tester.pumpWidget( diff --git a/packages/flutter/test/widgets/ensure_visible_test.dart b/packages/flutter/test/widgets/ensure_visible_test.dart index dbc8baabf0a..e206383ff1b 100644 --- a/packages/flutter/test/widgets/ensure_visible_test.dart +++ b/packages/flutter/test/widgets/ensure_visible_test.dart @@ -211,7 +211,7 @@ void main() { ), ), ), - ) + ), ); Scrollable.ensureVisible(findContext(0)); diff --git a/packages/flutter/test/widgets/fitted_box_test.dart b/packages/flutter/test/widgets/fitted_box_test.dart index fa05086e337..d6fab2aadbd 100644 --- a/packages/flutter/test/widgets/fitted_box_test.dart +++ b/packages/flutter/test/widgets/fitted_box_test.dart @@ -24,7 +24,7 @@ void main() { ), ), ), - ) + ), ); final RenderBox outsideBox = tester.firstRenderObject(find.byKey(outside)); @@ -60,7 +60,7 @@ void main() { ), ), ), - ) + ), ); final RenderBox outsideBox = tester.firstRenderObject(find.byKey(outside)); @@ -96,7 +96,7 @@ void main() { ), ), ), - ) + ), ); final RenderBox outsideBox = tester.firstRenderObject(find.byKey(outside)); @@ -466,7 +466,7 @@ void main() { ), ), ), - ) + ), ); expect(_pointerDown, isFalse); await tester.tap(find.byKey(key1)); diff --git a/packages/flutter/test/widgets/flow_test.dart b/packages/flutter/test/widgets/flow_test.dart index 26654b48569..300975d0cb6 100644 --- a/packages/flutter/test/widgets/flow_test.dart +++ b/packages/flutter/test/widgets/flow_test.dart @@ -78,7 +78,7 @@ void main() { buildBox(5), buildBox(6), ], - ) + ), ); await tester.tap(find.text('0')); @@ -108,7 +108,7 @@ void main() { children: [ Container(width: 100.0, height: 100.0), ], - ) + ), ); ContainerLayer layer = RendererBinding.instance.renderView.debugLayer; while (layer != null && !(layer is OpacityLayer)) diff --git a/packages/flutter/test/widgets/framework_test.dart b/packages/flutter/test/widgets/framework_test.dart index 19cf6d6cad1..2b6a6d4e630 100644 --- a/packages/flutter/test/widgets/framework_test.dart +++ b/packages/flutter/test/widgets/framework_test.dart @@ -517,7 +517,7 @@ void main() { delegate: SliverChildListDelegate([ Text('child', key: GlobalKey()), ]), - ) + ), ], ), ), diff --git a/packages/flutter/test/widgets/gesture_detector_semantics_test.dart b/packages/flutter/test/widgets/gesture_detector_semantics_test.dart index 2d8cd555af5..9d77ca56d3f 100644 --- a/packages/flutter/test/widgets/gesture_detector_semantics_test.dart +++ b/packages/flutter/test/widgets/gesture_detector_semantics_test.dart @@ -25,7 +25,7 @@ void main() { }, child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -59,7 +59,7 @@ void main() { }, child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -125,7 +125,7 @@ void main() { instance ..onTap = () { logs.add('tap'); }; }, - ) + ), }); }; @@ -149,7 +149,7 @@ void main() { instance ..onStart = (_) { logs.add('horizontal'); }; }, - ) + ), }, child: hasLayoutPerformer ? _TestLayoutPerformer(performLayout: performLayout) : null, ), @@ -186,7 +186,7 @@ void main() { gestures: gestures, child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -200,7 +200,7 @@ void main() { semantics: _TestSemanticsGestureDelegate(onTap: () {}), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -222,7 +222,7 @@ void main() { semantics: _TestSemanticsGestureDelegate(onTap: () {}), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -235,7 +235,7 @@ void main() { gestures: gestures, child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -257,7 +257,7 @@ void main() { semantics: _TestSemanticsGestureDelegate(onTap: () {}), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -271,7 +271,7 @@ void main() { semantics: _TestSemanticsGestureDelegate(onLongPress: () {}), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -298,7 +298,7 @@ void main() { ), child: Container(), ), - ) + ), ); final int detectorId = detectorKey.currentContext.findRenderObject().debugSemantics.id; @@ -332,7 +332,7 @@ void main() { gestures: _buildGestureMap(null, null), child: Container(), ), - ) + ), ); expect(semantics, isNot(includesNodeWith( @@ -353,7 +353,7 @@ void main() { ), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -384,7 +384,7 @@ void main() { ), child: Container(), ), - ) + ), ); final int detectorId = detectorKey.currentContext.findRenderObject().debugSemantics.id; @@ -404,7 +404,7 @@ void main() { gestures: _buildGestureMap(null, null), child: Container(), ), - ) + ), ); expect(semantics, isNot(includesNodeWith( @@ -425,7 +425,7 @@ void main() { ), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -456,7 +456,7 @@ void main() { ), child: Container(), ), - ) + ), ); final int detectorId = detectorKey.currentContext.findRenderObject().debugSemantics.id; @@ -476,7 +476,7 @@ void main() { gestures: _buildGestureMap(null, null), child: Container(), ), - ) + ), ); expect(semantics, isNot(includesNodeWith( @@ -497,7 +497,7 @@ void main() { ), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -513,7 +513,7 @@ void main() { ), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -556,7 +556,7 @@ void main() { gestures: gestures, child: Container(), ), - ) + ), ); final int detectorId = detectorKey.currentContext.findRenderObject().debugSemantics.id; @@ -582,7 +582,7 @@ void main() { gestures: _buildGestureMap(null, null), child: Container(), ), - ) + ), ); expect(semantics, isNot(includesNodeWith( @@ -603,7 +603,7 @@ void main() { ), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -647,7 +647,7 @@ void main() { gestures: gestures, child: Container(), ), - ) + ), ); final int detectorId = detectorKey.currentContext.findRenderObject().debugSemantics.id; @@ -672,7 +672,7 @@ void main() { gestures: _buildGestureMap(() => LongPressGestureRecognizer(), null), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( @@ -685,7 +685,7 @@ void main() { gestures: _buildGestureMap(() => TapGestureRecognizer(), null), child: Container(), ), - ) + ), ); expect(semantics, includesNodeWith( diff --git a/packages/flutter/test/widgets/heroes_test.dart b/packages/flutter/test/widgets/heroes_test.dart index 059ba0d2504..14fb9fe078b 100644 --- a/packages/flutter/test/widgets/heroes_test.dart +++ b/packages/flutter/test/widgets/heroes_test.dart @@ -315,7 +315,7 @@ Future main() async { find.ancestor( of: find.byKey(firstKey, skipOffstage: false), matching: find.byType(Offstage, skipOffstage: false), - ).first + ).first, ); // Original hero should stay hidden. expect(first.offstage, isTrue); @@ -736,7 +736,7 @@ Future main() async { }, ), ), - ) + ), ); // Pushes route @@ -838,7 +838,7 @@ Future main() async { }, ), ), - ) + ), ); // Pushes route @@ -916,7 +916,7 @@ Future main() async { }, ), ), - ) + ), ); // Pushes route @@ -1044,7 +1044,7 @@ Future main() async { }, ), ), - ) + ), ); // Pushes routeB @@ -1143,7 +1143,7 @@ Future main() async { }, ), ), - ) + ), ); expect(find.text('456'), findsOneWidget); @@ -1758,7 +1758,7 @@ Future main() async { ); }, ), - ) + ), ); nestedNavigator.currentState.push(MaterialPageRoute( @@ -2234,7 +2234,7 @@ Future main() async { child: Image( image: imageProvider, key: imageKey2, - ) + ), ), ), ); diff --git a/packages/flutter/test/widgets/hyperlink_test.dart b/packages/flutter/test/widgets/hyperlink_test.dart index 122f2cdb93a..6ce17364afc 100644 --- a/packages/flutter/test/widgets/hyperlink_test.dart +++ b/packages/flutter/test/widgets/hyperlink_test.dart @@ -38,10 +38,10 @@ void main() { text: 'zzzzzzzzz', recognizer: tapRight, ), - ] + ], ), ), - ) + ), ); final RenderBox box = tester.renderObject(find.byKey(textKey)); diff --git a/packages/flutter/test/widgets/icon_test.dart b/packages/flutter/test/widgets/icon_test.dart index 0d9e5f2333a..3ae6c8c9a5d 100644 --- a/packages/flutter/test/widgets/icon_test.dart +++ b/packages/flutter/test/widgets/icon_test.dart @@ -87,7 +87,7 @@ void main() { ), ), ), - ) + ), ); final RenderBox renderObject = tester.renderObject(find.byType(Icon)); diff --git a/packages/flutter/test/widgets/image_icon_test.dart b/packages/flutter/test/widgets/image_icon_test.dart index 706de55c400..132d57b4cab 100644 --- a/packages/flutter/test/widgets/image_icon_test.dart +++ b/packages/flutter/test/widgets/image_icon_test.dart @@ -15,7 +15,7 @@ void main() { await tester.pumpWidget( const Center( child: ImageIcon(_kImage), - ) + ), ); final RenderBox renderObject = tester.renderObject(find.byType(ImageIcon)); @@ -45,7 +45,7 @@ void main() { null, size: 96.0, ), - ) + ), ); final RenderBox renderObject = tester.renderObject(find.byType(ImageIcon)); @@ -59,7 +59,7 @@ void main() { data: IconThemeData(size: 36.0), child: ImageIcon(null), ), - ) + ), ); final RenderBox renderObject = tester.renderObject(find.byType(ImageIcon)); @@ -76,7 +76,7 @@ void main() { size: 48.0, ), ), - ) + ), ); final RenderBox renderObject = tester.renderObject(find.byType(ImageIcon)); @@ -90,7 +90,7 @@ void main() { data: IconThemeData(), child: ImageIcon(null), ), - ) + ), ); final RenderBox renderObject = tester.renderObject(find.byType(ImageIcon)); diff --git a/packages/flutter/test/widgets/image_test.dart b/packages/flutter/test/widgets/image_test.dart index cd68b981a80..da2a2f0997b 100644 --- a/packages/flutter/test/widgets/image_test.dart +++ b/packages/flutter/test/widgets/image_test.dart @@ -210,7 +210,7 @@ void main() { image: imageProvider, ), ), - ) + ), ); expect(imageProvider._lastResolvedConfiguration.devicePixelRatio, 5.0); @@ -237,7 +237,7 @@ void main() { image: imageProvider, ), ), - ) + ), ); expect(imageProvider._lastResolvedConfiguration.devicePixelRatio, 10.0); @@ -276,7 +276,7 @@ void main() { child: Container(width: 100.0), ), ], - ) + ), ); expect(imageProvider._lastResolvedConfiguration.devicePixelRatio, 5.0); @@ -306,7 +306,7 @@ void main() { ), ), ], - ) + ), ); expect(imageProvider._lastResolvedConfiguration.devicePixelRatio, 10.0); @@ -597,7 +597,7 @@ void main() { image: TestImageProvider(), color: const Color(0xFF00FF00), colorBlendMode: BlendMode.clear, - ) + ), ); final RenderImage renderer = tester.renderObject(find.byType(Image)); expect(renderer.color, const Color(0xFF00FF00)); @@ -792,7 +792,7 @@ void main() { textDirection: TextDirection.ltr, flags: [SemanticsFlag.isImage], ), - ] + ], ), ignoreTransform: true)); semantics.dispose(); }); diff --git a/packages/flutter/test/widgets/inherited_test.dart b/packages/flutter/test/widgets/inherited_test.dart index c8e64ea67ab..fe00bd81958 100644 --- a/packages/flutter/test/widgets/inherited_test.dart +++ b/packages/flutter/test/widgets/inherited_test.dart @@ -161,7 +161,7 @@ void main() { ), ), ), - ) + ), ); expect(log, equals(['a: 3'])); @@ -237,7 +237,7 @@ void main() { ), ), ), - ) + ), ); expect(log, equals(['a: 3'])); @@ -308,7 +308,7 @@ void main() { ), ), ), - ) + ), ); expect(log, equals([3])); @@ -355,7 +355,7 @@ void main() { ), right: child, ), - ) + ), ); expect(log, equals([3])); @@ -403,7 +403,7 @@ void main() { ValueInherited( value: 3, child: inner, - ) + ), ); expect(inheritedValue, equals(3)); }); @@ -430,7 +430,7 @@ void main() { ValueInherited( value: 3, child: inner, - ) + ), ); expect(buildCount, equals(1)); }); @@ -461,7 +461,7 @@ void main() { ValueInherited( value: 3, child: inner, - ) + ), ); expect(buildCount, equals(2)); }); diff --git a/packages/flutter/test/widgets/inherited_theme_test.dart b/packages/flutter/test/widgets/inherited_theme_test.dart index e18b2ac045c..3b51b54350a 100644 --- a/packages/flutter/test/widgets/inherited_theme_test.dart +++ b/packages/flutter/test/widgets/inherited_theme_test.dart @@ -188,7 +188,7 @@ void main() { ), ); }, - ) + ), ); TextStyle getIconStyle(Key key) { diff --git a/packages/flutter/test/widgets/layout_builder_test.dart b/packages/flutter/test/widgets/layout_builder_test.dart index 9e50b303787..855b86f70d1 100644 --- a/packages/flutter/test/widgets/layout_builder_test.dart +++ b/packages/flutter/test/widgets/layout_builder_test.dart @@ -28,7 +28,7 @@ void main() { }, ), ), - ) + ), ); expect(layoutBuilderSize, const Size(100.0, 200.0)); @@ -231,7 +231,7 @@ void main() { ); } ), - ) + ), ); expect(layoutBuilderSize, equals(const Size(10.0, 20.0))); diff --git a/packages/flutter/test/widgets/list_view_viewporting_test.dart b/packages/flutter/test/widgets/list_view_viewporting_test.dart index eabae8da46f..8bdd213f090 100644 --- a/packages/flutter/test/widgets/list_view_viewporting_test.dart +++ b/packages/flutter/test/widgets/list_view_viewporting_test.dart @@ -120,8 +120,7 @@ void main() { 1, 2, 3, 4, 5, // visible 6, 7, - ] - )); + ])); callbackTracker.clear(); }); @@ -459,7 +458,7 @@ void main() { ), ), ), - ) + ), ); final RenderSliverList list = tester.renderObject(find.byType(SliverList)); @@ -490,7 +489,7 @@ void main() { ), ), ), - ) + ), ); final RenderObject renderObject = tester.renderObject(find.byType(Scrollable)); @@ -516,7 +515,7 @@ void main() { ), ), ), - ) + ), ); final RenderObject renderObject = tester.renderObject(find.byType(Scrollable)); diff --git a/packages/flutter/test/widgets/list_wheel_scroll_view_test.dart b/packages/flutter/test/widgets/list_wheel_scroll_view_test.dart index b52e5388b87..380cb4ba6ff 100644 --- a/packages/flutter/test/widgets/list_wheel_scroll_view_test.dart +++ b/packages/flutter/test/widgets/list_wheel_scroll_view_test.dart @@ -134,7 +134,7 @@ void main() { }, ), ), - ) + ), ); // Can be scrolled infinitely for negative indexes. @@ -183,7 +183,7 @@ void main() { }, ), ), - ) + ), ); expect(paintedChildren, [-13, -12, -11, -10, -9, -8, -7]); @@ -299,7 +299,7 @@ void main() { }, ), ), - ) + ), ); // Scrolls up and down to check if builder is called twice. @@ -326,7 +326,7 @@ void main() { return Text(index.toString()); }), ), - ) + ), ); final RenderListWheelViewport viewport = tester.firstRenderObject(find.byType(Text)).parent.parent; @@ -363,7 +363,7 @@ void main() { return Text(index.toString()); }), ), - ) + ), ); final RenderListWheelViewport viewport = tester.firstRenderObject(find.byType(Text)).parent.parent; @@ -385,7 +385,7 @@ void main() { return Text(index.toString()); }), ), - ) + ), ); // 12 instead of 6 children are laid out + 1 because the middle item is diff --git a/packages/flutter/test/widgets/listener_test.dart b/packages/flutter/test/widgets/listener_test.dart index da1592e0d4c..92ad7cc7d7e 100644 --- a/packages/flutter/test/widgets/listener_test.dart +++ b/packages/flutter/test/widgets/listener_test.dart @@ -34,7 +34,7 @@ void main() { ), ), ), - ) + ), ); await tester.tap(find.text('X')); diff --git a/packages/flutter/test/widgets/modal_barrier_test.dart b/packages/flutter/test/widgets/modal_barrier_test.dart index cc5c267ff7d..9bf6c2eac75 100644 --- a/packages/flutter/test/widgets/modal_barrier_test.dart +++ b/packages/flutter/test/widgets/modal_barrier_test.dart @@ -274,7 +274,7 @@ void main() { label: 'Dismiss', textDirection: TextDirection.ltr, ), - ] + ], ); expect(semantics, hasSemantics(expectedSemantics, ignoreId: true)); diff --git a/packages/flutter/test/widgets/obscured_animated_image_test.dart b/packages/flutter/test/widgets/obscured_animated_image_test.dart index eaacbf9d977..c1b34636229 100644 --- a/packages/flutter/test/widgets/obscured_animated_image_test.dart +++ b/packages/flutter/test/widgets/obscured_animated_image_test.dart @@ -25,7 +25,7 @@ Future main() async { routes: { '/page': (BuildContext context) => Container(), }, - ) + ), ); final RenderImage renderImage = tester.renderObject(find.byType(Image)); final ui.Image image1 = renderImage.image; diff --git a/packages/flutter/test/widgets/opacity_test.dart b/packages/flutter/test/widgets/opacity_test.dart index 53060b404be..c6aed6feaa6 100644 --- a/packages/flutter/test/widgets/opacity_test.dart +++ b/packages/flutter/test/widgets/opacity_test.dart @@ -174,7 +174,7 @@ void main() { ), ), ), - ) + ), ); await expectLater( find.byType(RepaintBoundary).first, diff --git a/packages/flutter/test/widgets/page_storage_test.dart b/packages/flutter/test/widgets/page_storage_test.dart index f72cd0aa9de..a375124d07b 100644 --- a/packages/flutter/test/widgets/page_storage_test.dart +++ b/packages/flutter/test/widgets/page_storage_test.dart @@ -23,7 +23,7 @@ void main() { ); }, ), - ) + ), ); final Element builderElement = tester.element(find.byKey(builderKey)); diff --git a/packages/flutter/test/widgets/platform_view_test.dart b/packages/flutter/test/widgets/platform_view_test.dart index e7f5188753f..e5de7851b8b 100644 --- a/packages/flutter/test/widgets/platform_view_test.dart +++ b/packages/flutter/test/widgets/platform_view_test.dart @@ -888,7 +888,7 @@ void main() { find.descendant( of: find.byType(AndroidView), matching: find.byType(Focus), - ) + ), ); final Element containerElement = tester.element(find.byKey(containerKey)); final FocusNode androidViewFocusNode = androidViewFocusWidget.focusNode; @@ -1579,7 +1579,7 @@ void main() { height: 100, ), ], - ) + ), ); // First frame is before the platform view was created so the render object @@ -1914,7 +1914,8 @@ void main() { Factory( constructRecognizer, ), - }) + }, + ), ); await tester.pumpWidget( @@ -1925,7 +1926,8 @@ void main() { Factory( constructRecognizer, ), - }) + }, + ), ); expect(factoryInvocationCount, 1); }); @@ -2160,7 +2162,7 @@ void main() { find.descendant( of: find.byType(PlatformViewLink), matching: find.byType(Focus), - ) + ), ); final FocusNode platformViewFocusNode = platformViewFocusWidget.focusNode; final Element containerElement = tester.element(find.byKey(containerKey)); diff --git a/packages/flutter/test/widgets/reparent_state_test.dart b/packages/flutter/test/widgets/reparent_state_test.dart index 450cf054624..01a05f55507 100644 --- a/packages/flutter/test/widgets/reparent_state_test.dart +++ b/packages/flutter/test/widgets/reparent_state_test.dart @@ -68,7 +68,7 @@ void main() { ), ), ], - ) + ), ); final StateMarkerState leftState = left.currentState; @@ -95,7 +95,7 @@ void main() { child: StateMarker(key: left), ), ], - ) + ), ); expect(left.currentState, equals(leftState)); @@ -116,7 +116,7 @@ void main() { child: Container(), ), ), - ) + ), ); expect(left.currentState, equals(leftState)); @@ -139,7 +139,7 @@ void main() { child: grandchild, ), ], - ) + ), ); final StateMarkerState leftState = left.currentState; @@ -162,7 +162,7 @@ void main() { ), StateMarker(key: left), ], - ) + ), ); expect(left.currentState, equals(leftState)); @@ -183,7 +183,7 @@ void main() { child: Container(), ), ), - ) + ), ); expect(left.currentState, equals(leftState)); @@ -365,7 +365,7 @@ void main() { ), ), ], - ) + ), ); await tester.pumpWidget( @@ -384,7 +384,7 @@ void main() { ), ), ], - ) + ), ); }); } diff --git a/packages/flutter/test/widgets/run_app_test.dart b/packages/flutter/test/widgets/run_app_test.dart index 2fa75895679..2741e9a5db3 100644 --- a/packages/flutter/test/widgets/run_app_test.dart +++ b/packages/flutter/test/widgets/run_app_test.dart @@ -18,7 +18,7 @@ void main() { child: const Text('GO'), ), ), - ) + ), ); await tester.tap(find.text('GO')); expect(find.text('Done'), findsOneWidget); diff --git a/packages/flutter/test/widgets/safe_area_test.dart b/packages/flutter/test/widgets/safe_area_test.dart index d537d2ff474..7db94af6795 100644 --- a/packages/flutter/test/widgets/safe_area_test.dart +++ b/packages/flutter/test/widgets/safe_area_test.dart @@ -104,7 +104,7 @@ void main() { maintainBottomViewPadding: true, child: Column( children: const [ - Expanded(child: Placeholder()) + Expanded(child: Placeholder()), ], ), )); @@ -141,7 +141,7 @@ void main() { resizeToAvoidBottomInset: false, body: Column( children: const [ - Expanded(child: Placeholder()) + Expanded(child: Placeholder()), ], ), ), diff --git a/packages/flutter/test/widgets/scrollable_dispose_test.dart b/packages/flutter/test/widgets/scrollable_dispose_test.dart index 9eeb416358d..bfb69492440 100644 --- a/packages/flutter/test/widgets/scrollable_dispose_test.dart +++ b/packages/flutter/test/widgets/scrollable_dispose_test.dart @@ -84,7 +84,7 @@ void main() { await tester.pumpWidget( MaterialApp( home: Container(), - ) + ), ); await tester.pumpAndSettle(); expect(controller.hasClients, isFalse); diff --git a/packages/flutter/test/widgets/selectable_text_test.dart b/packages/flutter/test/widgets/selectable_text_test.dart index e247d663f0e..e6878830fc9 100644 --- a/packages/flutter/test/widgets/selectable_text_test.dart +++ b/packages/flutter/test/widgets/selectable_text_test.dart @@ -78,7 +78,7 @@ Widget overlayWithEntry(OverlayEntry entry) { data: const MediaQueryData(size: Size(800.0, 600.0)), child: Overlay( initialEntries: [ - entry + entry, ], ), ), @@ -117,7 +117,7 @@ double getOpacity(WidgetTester tester, Finder finder) { find.ancestor( of: finder, matching: find.byType(FadeTransition), - ) + ), ).opacity.value; } @@ -239,7 +239,7 @@ void main() { ), ), ], - ) + ), ), ), ), @@ -277,7 +277,7 @@ void main() { child: Text('Hello World!') ) ), - ) + ), ), TextSpan( text: 'Third line!\n', @@ -287,7 +287,7 @@ void main() { ), ), ], - ) + ), ), ), ), @@ -299,7 +299,7 @@ void main() { await tester.pumpWidget( overlay( child: const SelectableText('selectable text'), - ) + ), ); await tester.tap(find.byType(SelectableText)); await tester.idle(); @@ -310,7 +310,7 @@ void main() { await tester.pumpWidget( boilerplate( child: const SelectableText('s'), - ) + ), ); RenderBox findSelectableTextBox() => tester.renderObject(find.byType(SelectableText)); @@ -321,7 +321,7 @@ void main() { await tester.pumpWidget( boilerplate( child: const SelectableText('very very long'), - ) + ), ); final RenderBox longtextBox = findSelectableTextBox(); @@ -337,7 +337,7 @@ void main() { text, textWidthBasis: TextWidthBasis.parent, ), - ) + ), ); RenderBox textBox = findTextBox(); expect(textBox.size, const Size(800.0, 28.0)); @@ -348,7 +348,7 @@ void main() { text, textWidthBasis: TextWidthBasis.longestLine, ), - ) + ), ); textBox = findTextBox(); expect(textBox.size, const Size(633.0, 28.0)); @@ -417,7 +417,7 @@ void main() { await tester.pumpWidget( overlay( child: const SelectableText('abc def ghi'), - ) + ), ); final EditableText editableText = tester.widget(find.byType(EditableText)); expect(editableText.controller.selection.baseOffset, -1); @@ -440,7 +440,7 @@ void main() { 'abc def ghi', enableInteractiveSelection: false, ), - ) + ), ); final EditableText editableText = tester.widget(find.byType(EditableText)); expect(editableText.controller.selection.baseOffset, -1); @@ -463,7 +463,7 @@ void main() { 'abc def ghi', enableInteractiveSelection: false, ), - ) + ), ); final EditableText editableText = tester.widget(find.byType(EditableText)); expect(editableText.controller.selection.baseOffset, -1); @@ -485,7 +485,7 @@ void main() { await tester.pumpWidget( overlay( child: const SelectableText('abc def ghi'), - ) + ), ); final EditableText editableText = tester.widget(find.byType(EditableText)); @@ -514,7 +514,7 @@ void main() { await tester.pumpWidget( overlay( child: const SelectableText('abc def ghi'), - ) + ), ); // Long press the 'e' to select 'def', but don't release the gesture. final Offset ePos = textOffsetToPosition(tester, 5); @@ -541,7 +541,7 @@ void main() { await tester.pumpWidget( overlay( child: const SelectableText('abc def ghi'), - ) + ), ); final EditableText editableText = tester.widget(find.byType(EditableText)); @@ -564,7 +564,7 @@ void main() { await tester.pumpWidget( overlay( child: const SelectableText('selectable'), - ) + ), ); final EditableText editableTextWidget = tester.widget(find.byType(EditableText)); // selectable text cannot open keyboard. @@ -602,7 +602,7 @@ void main() { selectAll: true, ), ), - ) + ), ); const int dIndex = 5; final Offset dPos = textOffsetToPosition(tester, dIndex); @@ -1240,7 +1240,7 @@ void main() { SemanticsFlag.isTextField, SemanticsFlag.isReadOnly, SemanticsFlag.isMultiline, - ] + ], ), ); @@ -1635,7 +1635,7 @@ void main() { 'x', maxLines: null, ), - ) + ), ); final EditableText editableTextWidget = tester.widget(find.byType(EditableText).first); @@ -2242,7 +2242,7 @@ void main() { style: style, ), ), - ) + ), ), ); } diff --git a/packages/flutter/test/widgets/semantics_1_test.dart b/packages/flutter/test/widgets/semantics_1_test.dart index 5e41aa2b5df..eee0fb40e7c 100644 --- a/packages/flutter/test/widgets/semantics_1_test.dart +++ b/packages/flutter/test/widgets/semantics_1_test.dart @@ -36,7 +36,7 @@ void main() { rect: TestSemantics.fullScreen, flags: SemanticsFlag.isSelected.index, ), - ] + ], ))); // control for forking diff --git a/packages/flutter/test/widgets/semantics_3_test.dart b/packages/flutter/test/widgets/semantics_3_test.dart index f28218320a7..064a231a8d3 100644 --- a/packages/flutter/test/widgets/semantics_3_test.dart +++ b/packages/flutter/test/widgets/semantics_3_test.dart @@ -39,8 +39,8 @@ void main() { label: 'test', rect: TestSemantics.fullScreen, ), - ] - ) + ], + ), )); // remove one @@ -63,8 +63,8 @@ void main() { flags: SemanticsFlag.hasCheckedState.index | SemanticsFlag.isChecked.index, rect: TestSemantics.fullScreen, ), - ] - ) + ], + ), )); // change what it says @@ -89,8 +89,8 @@ void main() { textDirection: TextDirection.ltr, rect: TestSemantics.fullScreen, ), - ] - ) + ], + ), )); // add a node diff --git a/packages/flutter/test/widgets/semantics_4_test.dart b/packages/flutter/test/widgets/semantics_4_test.dart index da85ebb2858..79dc778b84a 100644 --- a/packages/flutter/test/widgets/semantics_4_test.dart +++ b/packages/flutter/test/widgets/semantics_4_test.dart @@ -73,7 +73,7 @@ void main() { ], ), ], - ) + ), )); // O O=root @@ -122,7 +122,7 @@ void main() { rect: TestSemantics.fullScreen, ), ], - ) + ), )); // O=root @@ -162,7 +162,7 @@ void main() { rect: TestSemantics.fullScreen, ), ], - ) + ), )); semantics.dispose(); diff --git a/packages/flutter/test/widgets/semantics_5_test.dart b/packages/flutter/test/widgets/semantics_5_test.dart index c3d8122cd89..3f89e410644 100644 --- a/packages/flutter/test/widgets/semantics_5_test.dart +++ b/packages/flutter/test/widgets/semantics_5_test.dart @@ -29,7 +29,7 @@ void main() { textDirection: TextDirection.ltr, ), ], - ) + ), ); expect(semantics, hasSemantics( @@ -44,8 +44,8 @@ void main() { label: 'label', rect: TestSemantics.fullScreen, ), - ] - ) + ], + ), )); semantics.dispose(); diff --git a/packages/flutter/test/widgets/semantics_7_test.dart b/packages/flutter/test/widgets/semantics_7_test.dart index 615ae228204..81183a4bbbd 100644 --- a/packages/flutter/test/widgets/semantics_7_test.dart +++ b/packages/flutter/test/widgets/semantics_7_test.dart @@ -67,7 +67,7 @@ void main() { ), // IDs 5 and 6 are used up by the nodes that get merged in ], - ) + ), )); label = '2'; @@ -123,7 +123,7 @@ void main() { ), // IDs 5 and 6 are used up by the nodes that get merged in ], - ) + ), )); semantics.dispose(); diff --git a/packages/flutter/test/widgets/semantics_8_test.dart b/packages/flutter/test/widgets/semantics_8_test.dart index 52aee78352d..42a8c2472d2 100644 --- a/packages/flutter/test/widgets/semantics_8_test.dart +++ b/packages/flutter/test/widgets/semantics_8_test.dart @@ -32,7 +32,7 @@ void main() { ), ), ), - ) + ), ); expect(semantics, hasSemantics( @@ -45,8 +45,8 @@ void main() { textDirection: TextDirection.ltr, rect: TestSemantics.fullScreen, ), - ] - ) + ], + ), )); // switch the order of the inner Semantics node to trigger a reset @@ -70,7 +70,7 @@ void main() { ), ), ), - ) + ), ); expect(semantics, hasSemantics( diff --git a/packages/flutter/test/widgets/semantics_merge_test.dart b/packages/flutter/test/widgets/semantics_merge_test.dart index aa04c6dacc0..0bdbe7f9fb0 100644 --- a/packages/flutter/test/widgets/semantics_merge_test.dart +++ b/packages/flutter/test/widgets/semantics_merge_test.dart @@ -81,7 +81,7 @@ void main() { id: 3, label: 'test1\ntest2', ), - ] + ], ), ignoreRect: true, ignoreTransform: true, @@ -156,7 +156,7 @@ void main() { ], label: 'test1\ntest2', ), - ] + ], ), ignoreRect: true, ignoreTransform: true, diff --git a/packages/flutter/test/widgets/semantics_test.dart b/packages/flutter/test/widgets/semantics_test.dart index 2f29d35224f..e7224cc5feb 100644 --- a/packages/flutter/test/widgets/semantics_test.dart +++ b/packages/flutter/test/widgets/semantics_test.dart @@ -37,7 +37,7 @@ void main() { textDirection: TextDirection.ltr, child: Container(), ), - ) + ), ); expect(semantics, hasSemantics( @@ -94,7 +94,7 @@ void main() { ), ], ), - ] + ], ), ignoreId: true, ignoreRect: true, @@ -136,7 +136,7 @@ void main() { ), ], ), - ] + ], ), ignoreId: true, ignoreRect: true, @@ -189,7 +189,7 @@ void main() { label: 'test1', textDirection: TextDirection.ltr, ), - ] + ], ); await tester.pumpWidget( @@ -216,7 +216,7 @@ void main() { label: 'test1', textDirection: TextDirection.rtl, ), - ] + ], ); await tester.pumpWidget( @@ -257,7 +257,7 @@ void main() { value: 'value', textDirection: TextDirection.ltr, ), - ] + ], ); expect(semantics, hasSemantics(expectedSemantics, ignoreTransform: true, ignoreRect: true, ignoreId: true)); @@ -293,7 +293,7 @@ void main() { hint: 'hint one\nhint two', textDirection: TextDirection.ltr, ), - ] + ], ); expect(semantics, hasSemantics(expectedSemantics, ignoreTransform: true, ignoreRect: true, ignoreId: true)); @@ -342,7 +342,7 @@ void main() { value: 'value two', textDirection: TextDirection.ltr, ), - ] + ], ), ], ); @@ -380,7 +380,7 @@ void main() { value: 'value', textDirection: TextDirection.ltr, ), - ] + ], ); expect(semantics, hasSemantics(expectedSemantics, ignoreTransform: true, ignoreRect: true, ignoreId: true)); @@ -412,7 +412,7 @@ void main() { onSetSelection: (TextSelection _) => performedActions.add(SemanticsAction.setSelection), onDidGainAccessibilityFocus: () => performedActions.add(SemanticsAction.didGainAccessibilityFocus), onDidLoseAccessibilityFocus: () => performedActions.add(SemanticsAction.didLoseAccessibilityFocus), - ) + ), ); final Set allActions = SemanticsAction.values.values.toSet() @@ -484,7 +484,7 @@ void main() { namesRoute: true, image: true, liveRegion: true, - ) + ), ); final List flags = SemanticsFlag.values.values.toList(); flags diff --git a/packages/flutter/test/widgets/semantics_traversal_test.dart b/packages/flutter/test/widgets/semantics_traversal_test.dart index 970cb8ecff2..3ad91f1e970 100644 --- a/packages/flutter/test/widgets/semantics_traversal_test.dart +++ b/packages/flutter/test/widgets/semantics_traversal_test.dart @@ -321,7 +321,7 @@ class TraversalTester { ), ), ), - ) + ), ); expect(semantics, hasSemantics( diff --git a/packages/flutter/test/widgets/shortcuts_test.dart b/packages/flutter/test/widgets/shortcuts_test.dart index ba38462bf99..a2495edd651 100644 --- a/packages/flutter/test/widgets/shortcuts_test.dart +++ b/packages/flutter/test/widgets/shortcuts_test.dart @@ -143,7 +143,8 @@ void main() { LogicalKeyboardKey.keyB, LogicalKeyboardKey.keyC, LogicalKeyboardKey.keyD, - }))); + })), + ); }); test('$KeySet diagnostics work.', () { final DiagnosticPropertiesBuilder builder = DiagnosticPropertiesBuilder(); diff --git a/packages/flutter/test/widgets/sized_box_test.dart b/packages/flutter/test/widgets/sized_box_test.dart index 9b8b6678019..63e4ec52458 100644 --- a/packages/flutter/test/widgets/sized_box_test.dart +++ b/packages/flutter/test/widgets/sized_box_test.dart @@ -44,7 +44,7 @@ void main() { child: SizedBox( key: patient, ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(0.0, 0.0))); @@ -54,7 +54,7 @@ void main() { key: patient, height: 0.0, ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(0.0, 0.0))); @@ -65,7 +65,7 @@ void main() { width: 0.0, height: 0.0, ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(0.0, 0.0))); @@ -76,7 +76,7 @@ void main() { width: 100.0, height: 100.0, ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(100.0, 100.0))); @@ -87,7 +87,7 @@ void main() { width: 1000.0, height: 1000.0, ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(800.0, 600.0))); @@ -96,7 +96,7 @@ void main() { child: SizedBox.expand( key: patient, ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(800.0, 600.0))); @@ -105,7 +105,7 @@ void main() { child: SizedBox.shrink( key: patient, ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(0.0, 0.0))); }); @@ -119,7 +119,7 @@ void main() { key: patient, child: Container(), ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(800.0, 600.0))); @@ -130,7 +130,7 @@ void main() { height: 0.0, child: Container(), ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(800.0, 0.0))); @@ -142,7 +142,7 @@ void main() { height: 0.0, child: Container(), ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(0.0, 0.0))); @@ -154,7 +154,7 @@ void main() { height: 100.0, child: Container(), ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(100.0, 100.0))); @@ -166,7 +166,7 @@ void main() { height: 1000.0, child: Container(), ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(800.0, 600.0))); @@ -176,7 +176,7 @@ void main() { key: patient, child: Container(), ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(800.0, 600.0))); @@ -186,7 +186,7 @@ void main() { key: patient, child: Container(), ), - ) + ), ); expect(patient.currentContext.size, equals(const Size(0.0, 0.0))); }); diff --git a/packages/flutter/test/widgets/sliver_appbar_opacity.dart b/packages/flutter/test/widgets/sliver_appbar_opacity.dart index ddb132883c7..7f22f94718a 100644 --- a/packages/flutter/test/widgets/sliver_appbar_opacity.dart +++ b/packages/flutter/test/widgets/sliver_appbar_opacity.dart @@ -15,7 +15,7 @@ void main() { floating: false, bottom: false, controller: controller, - ) + ), ); final RenderParagraph render = tester.renderObject(find.text('Hallo Welt!!1')); @@ -34,7 +34,7 @@ void main() { floating: false, bottom: true, controller: controller, - ) + ), ); final RenderParagraph render = tester.renderObject(find.text('Hallo Welt!!1')); @@ -53,7 +53,7 @@ void main() { floating: true, bottom: false, controller: controller, - ) + ), ); final RenderParagraph render = tester.renderObject(find.text('Hallo Welt!!1')); @@ -72,7 +72,7 @@ void main() { floating: true, bottom: true, controller: controller, - ) + ), ); final RenderParagraph render = tester.renderObject(find.text('Hallo Welt!!1')); @@ -91,7 +91,7 @@ void main() { floating: false, bottom: false, controller: controller, - ) + ), ); final RenderParagraph render = tester.renderObject(find.text('Hallo Welt!!1')); @@ -110,7 +110,7 @@ void main() { floating: false, bottom: true, controller: controller, - ) + ), ); final RenderParagraph render = tester.renderObject(find.text('Hallo Welt!!1')); @@ -131,7 +131,7 @@ void main() { floating: true, bottom: false, controller: controller, - ) + ), ); final RenderParagraph render = tester.renderObject(find.text('Hallo Welt!!1')); @@ -152,7 +152,7 @@ void main() { floating: true, bottom: true, controller: controller, - ) + ), ); final RenderParagraph render = tester.renderObject(find.text('Hallo Welt!!1')); diff --git a/packages/flutter/test/widgets/slivers_keepalive_test.dart b/packages/flutter/test/widgets/slivers_keepalive_test.dart index 3ee395e070d..c9a98c7018e 100644 --- a/packages/flutter/test/widgets/slivers_keepalive_test.dart +++ b/packages/flutter/test/widgets/slivers_keepalive_test.dart @@ -499,7 +499,7 @@ class _SwitchingChildListTest extends State { SliverFillViewport( viewportFraction: widget.viewportFraction, delegate: SliverChildListDelegate(widget.children), - ) + ), ], ), ), @@ -535,7 +535,7 @@ class _SwitchingSliverListTest extends State { slivers: [ SliverList( delegate: SliverChildListDelegate(widget.children), - ) + ), ], ), ), diff --git a/packages/flutter/test/widgets/slivers_test.dart b/packages/flutter/test/widgets/slivers_test.dart index ee9c3726823..4699b2165d7 100644 --- a/packages/flutter/test/widgets/slivers_test.dart +++ b/packages/flutter/test/widgets/slivers_test.dart @@ -275,7 +275,7 @@ void main() { [ Text('item0', key: Key('0')), Text('item1', key: Key('1')), - ] + ], )); await tester.pumpWidget(const TestSliverGrid( [ @@ -283,7 +283,7 @@ void main() { Text('item3', key: Key('3')), Text('item4', key: Key('4')), Text('item1', key: Key('1')), - ] + ], )); expect(find.text('item0'), findsOneWidget); expect(find.text('item3'), findsOneWidget); @@ -309,7 +309,7 @@ void main() { Text('item0', key: Key('0')), Text('item2', key: Key('2')), Text('item1', key: Key('1')), - ] + ], )); await tester.pumpWidget(const TestSliverFixedExtentList( [ @@ -318,7 +318,7 @@ void main() { Text('item1', key: Key('1')), Text('item4', key: Key('4')), Text('item2', key: Key('2')), - ] + ], )); expect(find.text('item0'), findsOneWidget); expect(find.text('item3'), findsOneWidget); @@ -374,10 +374,10 @@ void main() { return null; }, ), - ) + ), ], ), - ) + ), ); await tester.drag(find.text('Page 5'), const Offset(0, -1000)); // Controller will be temporarily over-scrolled. @@ -406,10 +406,10 @@ void main() { return null; }, ), - ) + ), ], ), - ) + ), ); await tester.drag(find.text('Page 5'), const Offset(0, -210)); // Controller will be temporarily over-scrolled. diff --git a/packages/flutter/test/widgets/stack_test.dart b/packages/flutter/test/widgets/stack_test.dart index 8d50bacb221..c6797a775de 100644 --- a/packages/flutter/test/widgets/stack_test.dart +++ b/packages/flutter/test/widgets/stack_test.dart @@ -589,7 +589,7 @@ void main() { ), ], ), - ) + ), ); expect(tester.getTopLeft(find.byKey(key)), const Offset(675.0, 0.0)); @@ -605,7 +605,7 @@ void main() { ), ], ), - ) + ), ); expect(tester.getTopLeft(find.byKey(key)), const Offset(50.0, 0.0)); diff --git a/packages/flutter/test/widgets/stateful_component_test.dart b/packages/flutter/test/widgets/stateful_component_test.dart index 9a63eeba007..6aa3920c5b3 100644 --- a/packages/flutter/test/widgets/stateful_component_test.dart +++ b/packages/flutter/test/widgets/stateful_component_test.dart @@ -25,7 +25,7 @@ void main() { const FlipWidget( left: DecoratedBox(decoration: kBoxDecorationA), right: DecoratedBox(decoration: kBoxDecorationB), - ) + ), ); checkTree(kBoxDecorationA); @@ -34,7 +34,7 @@ void main() { const FlipWidget( left: DecoratedBox(decoration: kBoxDecorationB), right: DecoratedBox(decoration: kBoxDecorationA), - ) + ), ); checkTree(kBoxDecorationB); @@ -49,7 +49,7 @@ void main() { const FlipWidget( left: DecoratedBox(decoration: kBoxDecorationA), right: DecoratedBox(decoration: kBoxDecorationB), - ) + ), ); checkTree(kBoxDecorationB); @@ -61,7 +61,7 @@ void main() { key: const Key('rebuild test'), left: TestBuildCounter(), right: const DecoratedBox(decoration: kBoxDecorationB), - ) + ), ); expect(TestBuildCounter.buildCount, equals(1)); diff --git a/packages/flutter/test/widgets/syncing_test.dart b/packages/flutter/test/widgets/syncing_test.dart index a0d4490bef1..481b604a98e 100644 --- a/packages/flutter/test/widgets/syncing_test.dart +++ b/packages/flutter/test/widgets/syncing_test.dart @@ -52,7 +52,7 @@ void main() { child: Container(), ), ), - ) + ), ); final TestWidgetState state = tester.state(find.byType(TestWidget)); @@ -68,7 +68,7 @@ void main() { child: Container(), ), ), - ) + ), ); expect(state.persistentState, equals(1)); @@ -86,7 +86,7 @@ void main() { child: Container(), ), ), - ) + ), ); TestWidgetState state = tester.state(find.byType(TestWidget)); @@ -100,7 +100,7 @@ void main() { persistentState: 11, child: Container(), ), - ) + ), ); state = tester.state(find.byType(TestWidget)); @@ -131,7 +131,7 @@ void main() { child: b, ), ], - ) + ), ); TestWidgetState first, second; @@ -158,7 +158,7 @@ void main() { child: b, ), ], - ) + ), ); first = tester.state(find.byWidget(a)); @@ -187,7 +187,7 @@ void main() { child: a, ), ], - ) + ), ); first = tester.state(find.byWidget(b)); diff --git a/packages/flutter/test/widgets/text_golden_test.dart b/packages/flutter/test/widgets/text_golden_test.dart index 80936faf1d9..5bf078cb7fa 100644 --- a/packages/flutter/test/widgets/text_golden_test.dart +++ b/packages/flutter/test/widgets/text_golden_test.dart @@ -229,7 +229,7 @@ void main() { ), ), ), - ) + ), ); await expectLater( @@ -482,7 +482,7 @@ void main() { TextDecoration.underline, TextDecoration.overline, TextDecoration.lineThrough, - ] + ], ); await tester.pumpWidget( @@ -523,7 +523,7 @@ void main() { TextDecoration.underline, TextDecoration.overline, TextDecoration.lineThrough, - ] + ], ); await tester.pumpWidget( @@ -619,7 +619,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( child: Checkbox(value: false, onChanged: null), @@ -631,7 +631,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( child: Text('embedded'), diff --git a/packages/flutter/test/widgets/text_selection_test.dart b/packages/flutter/test/widgets/text_selection_test.dart index 911f20a2e03..9850e058dee 100644 --- a/packages/flutter/test/widgets/text_selection_test.dart +++ b/packages/flutter/test/widgets/text_selection_test.dart @@ -84,8 +84,8 @@ void main() { home: provider.buildGestureDetector( behavior: HitTestBehavior.translucent, child: FakeEditableText(key: editableTextKey), - ) - ) + ), + ), ); } @@ -284,7 +284,7 @@ void main() { pressure: 0.0, pressureMin: 0, pressureMax: 1, - ) + ), ); await tester.pump(const Duration(milliseconds: 50)); await gesture.up(); diff --git a/packages/flutter/test/widgets/text_test.dart b/packages/flutter/test/widgets/text_test.dart index c14b382fb9b..536f1a4380a 100644 --- a/packages/flutter/test/widgets/text_test.dart +++ b/packages/flutter/test/widgets/text_test.dart @@ -354,7 +354,7 @@ void main() { ], ), textDirection: TextDirection.ltr, - ) + ), ); // The expected visual order of the text is: // hello world RIS OD you OD WOH YOB good bye diff --git a/packages/flutter/test/widgets/wrap_test.dart b/packages/flutter/test/widgets/wrap_test.dart index 74cafc51f1c..e2bb3d81d1c 100644 --- a/packages/flutter/test/widgets/wrap_test.dart +++ b/packages/flutter/test/widgets/wrap_test.dart @@ -866,7 +866,7 @@ void main() { ], ), ], - ) + ), ); expect(tester.renderObject(find.byType(Wrap)).size, equals(const Size(800.0, 10.0))); @@ -886,7 +886,7 @@ void main() { ], ), ], - ) + ), ); expect(tester.renderObject(find.byType(Wrap)).size, equals(const Size(800.0, 30.0))); diff --git a/packages/flutter_tools/lib/src/android/android_studio_validator.dart b/packages/flutter_tools/lib/src/android/android_studio_validator.dart index 368d3a45c4c..d31cf6d63e8 100644 --- a/packages/flutter_tools/lib/src/android/android_studio_validator.dart +++ b/packages/flutter_tools/lib/src/android/android_studio_validator.dart @@ -22,7 +22,7 @@ class AndroidStudioValidator extends DoctorValidator { if (studios.isEmpty) NoAndroidStudioValidator() else - ...studios.map((AndroidStudio studio) => AndroidStudioValidator(studio)) + ...studios.map((AndroidStudio studio) => AndroidStudioValidator(studio)), ]; } diff --git a/packages/flutter_tools/lib/src/asset.dart b/packages/flutter_tools/lib/src/asset.dart index ad312dc77b7..67c24aeeb9f 100644 --- a/packages/flutter_tools/lib/src/asset.dart +++ b/packages/flutter_tools/lib/src/asset.dart @@ -663,7 +663,7 @@ void _parseAssetFromFile( baseDir: asset.baseDir, entryUri: entryUri, relativeUri: relativeUri, - ) + ), ); } diff --git a/packages/flutter_tools/lib/src/build_runner/build_script.dart b/packages/flutter_tools/lib/src/build_runner/build_script.dart index 608c9648e2b..24c972575c0 100644 --- a/packages/flutter_tools/lib/src/build_runner/build_script.dart +++ b/packages/flutter_tools/lib/src/build_runner/build_script.dart @@ -107,7 +107,7 @@ final List builders = [ hasPlugins: hasPlugins, initializePlatform: initializePlatform, ); - } + }, ], core.toRoot(), hideOutput: true, @@ -263,7 +263,7 @@ class FlutterWebTestBootstrapBuilder implements Builder { Map> get buildExtensions => const >{ '_test.dart': [ '_test.dart.browser_test.dart', - ] + ], }; @override diff --git a/packages/flutter_tools/lib/src/build_runner/resident_web_runner.dart b/packages/flutter_tools/lib/src/build_runner/resident_web_runner.dart index 4eb7ddfa4a7..0f0b325a840 100644 --- a/packages/flutter_tools/lib/src/build_runner/resident_web_runner.dart +++ b/packages/flutter_tools/lib/src/build_runner/resident_web_runner.dart @@ -185,7 +185,7 @@ class ResidentWebRunner extends ResidentRunner { mainPath: target, debuggingOptions: debuggingOptions, platformArgs: { - 'uri': _webFs.uri + 'uri': _webFs.uri, }, ); if (supportsServiceProtocol) { diff --git a/packages/flutter_tools/lib/src/build_system/build_system.dart b/packages/flutter_tools/lib/src/build_system/build_system.dart index 21937b88bfb..c1aeb3eb63a 100644 --- a/packages/flutter_tools/lib/src/build_system/build_system.dart +++ b/packages/flutter_tools/lib/src/build_system/build_system.dart @@ -128,7 +128,7 @@ abstract class Target { inputs, outputs, [ - for (Target target in dependencies) target._toNode(environment) + for (Target target in dependencies) target._toNode(environment), ], environment, ); @@ -680,7 +680,7 @@ class Node { FileHashStore fileHashStore, ) async { final Set currentOutputPaths = { - for (File file in outputs) file.path + for (File file in outputs) file.path, }; // For each input, first determine if we've already computed the hash // for it. Then collect it to be sent off for hashing as a group. diff --git a/packages/flutter_tools/lib/src/build_system/file_hash_store.dart b/packages/flutter_tools/lib/src/build_system/file_hash_store.dart index 5673026af72..b43c31188d9 100644 --- a/packages/flutter_tools/lib/src/build_system/file_hash_store.dart +++ b/packages/flutter_tools/lib/src/build_system/file_hash_store.dart @@ -22,8 +22,7 @@ class FileStorage { final int version = json['version']; final List rawCachedFiles = json['files']; final List cachedFiles = [ - for (Map rawFile in rawCachedFiles) - FileHash.fromJson(rawFile) + for (Map rawFile in rawCachedFiles) FileHash.fromJson(rawFile), ]; return FileStorage(version, cachedFiles); } @@ -35,8 +34,7 @@ class FileStorage { final Map json = { 'version': version, 'files': [ - for (FileHash file in files) - file.toJson() + for (FileHash file in files) file.toJson(), ], }; return utf8.encode(jsonEncode(json)); diff --git a/packages/flutter_tools/lib/src/build_system/source.dart b/packages/flutter_tools/lib/src/build_system/source.dart index 2d43129e911..3fd13b055d9 100644 --- a/packages/flutter_tools/lib/src/build_system/source.dart +++ b/packages/flutter_tools/lib/src/build_system/source.dart @@ -136,7 +136,7 @@ class SourceVisitor { sources.addAll([ for (FileSystemEntity entity in fs.directory(path).listSync(recursive: true)) if (entity is File) - entity + entity, ]); } else { sources.add(fs.file(path)); diff --git a/packages/flutter_tools/lib/src/build_system/targets/assets.dart b/packages/flutter_tools/lib/src/build_system/targets/assets.dart index 7eb1cdfc08e..127d4326569 100644 --- a/packages/flutter_tools/lib/src/build_system/targets/assets.dart +++ b/packages/flutter_tools/lib/src/build_system/targets/assets.dart @@ -161,7 +161,7 @@ class FlutterPlugins extends Target { @override List get outputs => const [ - Source.pattern('{PROJECT_DIR}/.flutter-plugins') + Source.pattern('{PROJECT_DIR}/.flutter-plugins'), ]; @override diff --git a/packages/flutter_tools/lib/src/build_system/targets/dart.dart b/packages/flutter_tools/lib/src/build_system/targets/dart.dart index d8b3acdaedf..7ed105c5fb3 100644 --- a/packages/flutter_tools/lib/src/build_system/targets/dart.dart +++ b/packages/flutter_tools/lib/src/build_system/targets/dart.dart @@ -149,7 +149,7 @@ class ReleaseCopyFlutterBundle extends CopyFlutterBundle { @override List get inputs => const [ - Source.behavior(AssetOutputBehavior()) + Source.behavior(AssetOutputBehavior()), ]; @override diff --git a/packages/flutter_tools/lib/src/cache.dart b/packages/flutter_tools/lib/src/cache.dart index fa57b923a8f..2b2854b8c1a 100644 --- a/packages/flutter_tools/lib/src/cache.dart +++ b/packages/flutter_tools/lib/src/cache.dart @@ -849,7 +849,7 @@ class AndroidGenSnapshotArtifacts extends EngineCachedArtifact { else if (platform.isLinux) ...>[ ..._linuxBinaryDirs, - ] + ], ]; } diff --git a/packages/flutter_tools/lib/src/commands/build_bundle.dart b/packages/flutter_tools/lib/src/commands/build_bundle.dart index 1225b75ddb2..a65803a8a6a 100644 --- a/packages/flutter_tools/lib/src/commands/build_bundle.dart +++ b/packages/flutter_tools/lib/src/commands/build_bundle.dart @@ -21,9 +21,13 @@ class BuildBundleCommand extends BuildSubCommand { usesBuildNumberOption(); addBuildModeFlags(verboseHelp: verboseHelp); argParser - ..addFlag('precompiled', negatable: false, help: 'If not provided, then ' - 'a debug build is always provided, regardless of build mode. If provided ' - 'then release is the default mode.' + ..addFlag( + 'precompiled', + negatable: false, + help: + 'If not provided, then ' + 'a debug build is always provided, regardless of build mode. If provided ' + 'then release is the default mode.', ) // This option is still referenced by the iOS build scripts. We should // remove it once we've updated those build scripts. diff --git a/packages/flutter_tools/lib/src/commands/test.dart b/packages/flutter_tools/lib/src/commands/test.dart index f317dddd89b..1444449922a 100644 --- a/packages/flutter_tools/lib/src/commands/test.dart +++ b/packages/flutter_tools/lib/src/commands/test.dart @@ -180,7 +180,7 @@ class TestCommand extends FastFlutterCommand { if (fs.isDirectorySync(path)) ..._findTests(fs.directory(path)) else - path + path, ]; } diff --git a/packages/flutter_tools/lib/src/commands/update_packages.dart b/packages/flutter_tools/lib/src/commands/update_packages.dart index 93cd33d27bf..56f94cea642 100644 --- a/packages/flutter_tools/lib/src/commands/update_packages.dart +++ b/packages/flutter_tools/lib/src/commands/update_packages.dart @@ -1150,7 +1150,7 @@ String _generateFakePubspec(Iterable dependencies) { printStatus('WARNING: the following packages use hard-coded version constraints:'); final Set allTransitive = { for (PubspecDependency dependency in dependencies) - dependency.name + dependency.name, }; for (String package in _kManuallyPinnedDependencies.keys) { // Don't add pinned dependency if it is not in the set of all transitive dependencies. diff --git a/packages/flutter_tools/lib/src/device.dart b/packages/flutter_tools/lib/src/device.dart index 1d18343f9d1..404ff6fadac 100644 --- a/packages/flutter_tools/lib/src/device.dart +++ b/packages/flutter_tools/lib/src/device.dart @@ -179,7 +179,7 @@ class DeviceManager { for (Device device in devices) if (await device.targetPlatform != TargetPlatform.fuchsia && await device.targetPlatform != TargetPlatform.web_javascript) - device + device, ]; } @@ -190,7 +190,7 @@ class DeviceManager { devices = [ for (Device device in devices) if (isDeviceSupportedForProject(device, flutterProject)) - device + device, ]; } else if (devices.length == 1 && !hasSpecifiedDeviceId && diff --git a/packages/flutter_tools/lib/src/ios/mac.dart b/packages/flutter_tools/lib/src/ios/mac.dart index 5e5895b5f9f..5693a223d00 100644 --- a/packages/flutter_tools/lib/src/ios/mac.dart +++ b/packages/flutter_tools/lib/src/ios/mac.dart @@ -416,7 +416,7 @@ Future buildXcodeProject({ 'CODE_SIGNING_ALLOWED=NO', 'CODE_SIGNING_REQUIRED=NO', 'CODE_SIGNING_IDENTITY=""', - ] + ], ); } diff --git a/packages/flutter_tools/lib/src/linux/linux_device.dart b/packages/flutter_tools/lib/src/linux/linux_device.dart index 5422cfb80f2..04b85a4eefe 100644 --- a/packages/flutter_tools/lib/src/linux/linux_device.dart +++ b/packages/flutter_tools/lib/src/linux/linux_device.dart @@ -87,7 +87,7 @@ class LinuxDevice extends Device { ); } final Process process = await processManager.start([ - package.executable(debuggingOptions?.buildInfo?.mode) + package.executable(debuggingOptions?.buildInfo?.mode), ]); if (debuggingOptions?.buildInfo?.isRelease == true) { return LaunchResult.succeeded(); diff --git a/packages/flutter_tools/lib/src/macos/macos_device.dart b/packages/flutter_tools/lib/src/macos/macos_device.dart index cfa0fc3a129..ddd893d585f 100644 --- a/packages/flutter_tools/lib/src/macos/macos_device.dart +++ b/packages/flutter_tools/lib/src/macos/macos_device.dart @@ -97,7 +97,7 @@ class MacOSDevice extends Device { _lastBuiltMode = debuggingOptions?.buildInfo?.mode; final Process process = await processManager.start([ - executable + executable, ]); if (debuggingOptions?.buildInfo?.isRelease == true) { return LaunchResult.succeeded(); diff --git a/packages/flutter_tools/lib/src/plugins.dart b/packages/flutter_tools/lib/src/plugins.dart index 62bb3768e67..56ebd0d12fc 100644 --- a/packages/flutter_tools/lib/src/plugins.dart +++ b/packages/flutter_tools/lib/src/plugins.dart @@ -150,7 +150,7 @@ class Plugin { final int numKeys = yaml.keys.toSet().length; if (numKeys != 1) { return [ - 'Invalid plugin specification. There must be only one key: "platforms", found multiple: ${yaml.keys.join(',')}' + 'Invalid plugin specification. There must be only one key: "platforms", found multiple: ${yaml.keys.join(',')}', ]; } else { return _validateMultiPlatformYaml(yaml['platforms']); diff --git a/packages/flutter_tools/lib/src/run_hot.dart b/packages/flutter_tools/lib/src/run_hot.dart index 21bc268af1c..add7322b3ac 100644 --- a/packages/flutter_tools/lib/src/run_hot.dart +++ b/packages/flutter_tools/lib/src/run_hot.dart @@ -176,7 +176,7 @@ class HotRunner extends ResidentRunner { httpUri: flutterDevices.first.observatoryUris.first, wsUri: flutterDevices.first.vmServices.first.wsAddress, baseUri: baseUris.first.toString(), - ) + ), ); } } catch (error) { diff --git a/packages/flutter_tools/lib/src/windows/visual_studio_validator.dart b/packages/flutter_tools/lib/src/windows/visual_studio_validator.dart index 8a1143ed267..fa7a77cd911 100644 --- a/packages/flutter_tools/lib/src/windows/visual_studio_validator.dart +++ b/packages/flutter_tools/lib/src/windows/visual_studio_validator.dart @@ -54,7 +54,7 @@ class VisualStudioValidator extends DoctorValidator { userMessages.visualStudioMissingComponents( visualStudio.workloadDescription, visualStudio.necessaryComponentDescriptions(majorVersion), - ) + ), )); } versionInfo = '${visualStudio.displayName} ${visualStudio.displayVersion}'; @@ -64,7 +64,7 @@ class VisualStudioValidator extends DoctorValidator { userMessages.visualStudioMissing( visualStudio.workloadDescription, visualStudio.necessaryComponentDescriptions(majorVersion), - ) + ), )); } diff --git a/packages/flutter_tools/lib/src/windows/windows_device.dart b/packages/flutter_tools/lib/src/windows/windows_device.dart index 73b86d94d3e..7e01d9d875a 100644 --- a/packages/flutter_tools/lib/src/windows/windows_device.dart +++ b/packages/flutter_tools/lib/src/windows/windows_device.dart @@ -88,7 +88,7 @@ class WindowsDevice extends Device { ); } final Process process = await processUtils.start([ - package.executable(debuggingOptions?.buildInfo?.mode) + package.executable(debuggingOptions?.buildInfo?.mode), ]); if (debuggingOptions?.buildInfo?.isRelease == true) { return LaunchResult.succeeded(); diff --git a/packages/flutter_tools/test/general.shard/android/gradle_test.dart b/packages/flutter_tools/test/general.shard/android/gradle_test.dart index a32bc5a662b..f8afc244933 100644 --- a/packages/flutter_tools/test/general.shard/android/gradle_test.dart +++ b/packages/flutter_tools/test/general.shard/android/gradle_test.dart @@ -1379,8 +1379,8 @@ plugin2=${plugin2.path} when(mockProcessManager.run( any, environment: anyNamed('environment'), - workingDirectory: anyNamed('workingDirectory')) - ).thenAnswer( + workingDirectory: anyNamed('workingDirectory'), + )).thenAnswer( (_) async => ProcessResult(1, 0, '', ''), ); fs.directory('build/outputs/repo').createSync(recursive: true); diff --git a/packages/flutter_tools/test/general.shard/base/net_test.dart b/packages/flutter_tools/test/general.shard/base/net_test.dart index a2ce13247bc..76fee7213fd 100644 --- a/packages/flutter_tools/test/general.shard/base/net_test.dart +++ b/packages/flutter_tools/test/general.shard/base/net_test.dart @@ -127,7 +127,7 @@ void main() { ), Platform: () => FakePlatform.fromPlatform(const LocalPlatform()) ..environment = { - 'FLUTTER_STORAGE_BASE_URL': 'example.invalid' + 'FLUTTER_STORAGE_BASE_URL': 'example.invalid', }, }); diff --git a/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart b/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart index a14bc8bd033..ff679ca639f 100644 --- a/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart +++ b/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart @@ -121,7 +121,7 @@ void main() { Source.pattern('{PROJECT_DIR}/foo.dart'), ] ..outputs = const [ - Source.pattern('{BUILD_DIR}/out') + Source.pattern('{BUILD_DIR}/out'), ]; final BuildResult result = await buildSystem.build(badTarget, environment); @@ -293,7 +293,7 @@ void main() { environment.buildDir.createSync(recursive: true); expect(fooTarget.toJson(environment), { 'inputs': [ - '/foo.dart' + '/foo.dart', ], 'outputs': [ fs.path.join(environment.buildDir.path, 'out'), diff --git a/packages/flutter_tools/test/general.shard/commands/build_apk_test.dart b/packages/flutter_tools/test/general.shard/commands/build_apk_test.dart index 52647d9ad8d..6dfa757314b 100644 --- a/packages/flutter_tools/test/general.shard/commands/build_apk_test.dart +++ b/packages/flutter_tools/test/general.shard/commands/build_apk_test.dart @@ -223,7 +223,7 @@ void main() { createMockProcess( exitCode: 1, stdout: r8StdoutWarning, - ) + ), ); }); diff --git a/packages/flutter_tools/test/general.shard/commands/build_appbundle_test.dart b/packages/flutter_tools/test/general.shard/commands/build_appbundle_test.dart index a7fbbe4f6d1..2d271dd6fc8 100644 --- a/packages/flutter_tools/test/general.shard/commands/build_appbundle_test.dart +++ b/packages/flutter_tools/test/general.shard/commands/build_appbundle_test.dart @@ -212,7 +212,7 @@ void main() { createMockProcess( exitCode: 1, stdout: r8StdoutWarning, - ) + ), ); }); diff --git a/packages/flutter_tools/test/general.shard/commands/precache_test.dart b/packages/flutter_tools/test/general.shard/commands/precache_test.dart index 1b1fc258373..128662eb3f3 100644 --- a/packages/flutter_tools/test/general.shard/commands/precache_test.dart +++ b/packages/flutter_tools/test/general.shard/commands/precache_test.dart @@ -37,7 +37,7 @@ void main() { '--windows', '--fuchsia', '--flutter_runner', - ] + ], ); expect(artifacts, unorderedEquals({ DevelopmentArtifact.universal, @@ -67,7 +67,7 @@ void main() { 'precache', '--no-ios', '--android', - ] + ], ); expect(artifacts, unorderedEquals({ DevelopmentArtifact.universal, @@ -92,7 +92,7 @@ void main() { '--android_gen_snapshot', '--android_maven', '--android_internal_build', - ] + ], ); expect(artifacts, unorderedEquals({ DevelopmentArtifact.universal, @@ -125,7 +125,7 @@ void main() { '--windows', '--fuchsia', '--flutter_runner', - ] + ], ); expect(artifacts, unorderedEquals({ DevelopmentArtifact.universal, diff --git a/packages/flutter_tools/test/general.shard/compile_expression_test.dart b/packages/flutter_tools/test/general.shard/compile_expression_test.dart index 1d8b936bb7c..a77404d1a25 100644 --- a/packages/flutter_tools/test/general.shard/compile_expression_test.dart +++ b/packages/flutter_tools/test/general.shard/compile_expression_test.dart @@ -167,7 +167,7 @@ void main() { expect(outputExpression.errorCount, 0); lastExpressionCompleted.complete(true); }, - ) + ), ); compileResponseCompleter.complete(Future>.value(utf8.encode( diff --git a/packages/flutter_tools/test/general.shard/devfs_test.dart b/packages/flutter_tools/test/general.shard/devfs_test.dart index 351d6c8b468..a892efa1330 100644 --- a/packages/flutter_tools/test/general.shard/devfs_test.dart +++ b/packages/flutter_tools/test/general.shard/devfs_test.dart @@ -415,4 +415,4 @@ class MyHttpOverrides extends HttpOverrides { class MockOddlyFailingHttpClient extends Mock implements HttpClient {} class MockHttpClientRequest extends Mock implements HttpClientRequest {} class MockHttpHeaders extends Mock implements HttpHeaders {} -class MockHttpClientResponse extends Mock implements HttpClientResponse {} \ No newline at end of file +class MockHttpClientResponse extends Mock implements HttpClientResponse {} diff --git a/packages/flutter_tools/test/general.shard/doctor.dart b/packages/flutter_tools/test/general.shard/doctor.dart index db574e6172d..bd5d563fd09 100644 --- a/packages/flutter_tools/test/general.shard/doctor.dart +++ b/packages/flutter_tools/test/general.shard/doctor.dart @@ -27,7 +27,7 @@ void main() { FeatureFlags: () => TestFeatureFlags( isLinuxEnabled: true, isWindowsEnabled: true, - ) + ), })); test('doctor validators does not include desktop when features are enabled', () => testbed.run(() { @@ -39,7 +39,7 @@ void main() { FeatureFlags: () => TestFeatureFlags( isLinuxEnabled: false, isWindowsEnabled: false, - ) + ), })); test('doctor validators includes web when feature is enabled', () => testbed.run(() { @@ -48,7 +48,7 @@ void main() { }, overrides: { FeatureFlags: () => TestFeatureFlags( isWebEnabled: true, - ) + ), })); test('doctor validators does not include web when feature is disabled', () => testbed.run(() { @@ -57,6 +57,6 @@ void main() { }, overrides: { FeatureFlags: () => TestFeatureFlags( isWebEnabled: false, - ) + ), })); } diff --git a/packages/flutter_tools/test/general.shard/ios/devices_test.dart b/packages/flutter_tools/test/general.shard/ios/devices_test.dart index 48e61f6e41b..2e35e21f90c 100644 --- a/packages/flutter_tools/test/general.shard/ios/devices_test.dart +++ b/packages/flutter_tools/test/general.shard/ios/devices_test.dart @@ -127,14 +127,14 @@ void main() { mockArtifacts.getArtifactPath( Artifact.ideviceinstaller, platform: anyNamed('platform'), - ) + ), ).thenReturn(installerPath); when( mockArtifacts.getArtifactPath( Artifact.iosDeploy, platform: anyNamed('platform'), - ) + ), ).thenReturn(iosDeployPath); when(mockPortForwarder.forward(devicePort, hostPort: anyNamed('hostPort'))) @@ -411,7 +411,7 @@ void main() { mockArtifacts.getArtifactPath( Artifact.ideviceinstaller, platform: anyNamed('platform'), - ) + ), ).thenReturn(installerPath); }); diff --git a/packages/flutter_tools/test/general.shard/linux/linux_workflow_test.dart b/packages/flutter_tools/test/general.shard/linux/linux_workflow_test.dart index 8723c47f022..7f967b2f92f 100644 --- a/packages/flutter_tools/test/general.shard/linux/linux_workflow_test.dart +++ b/packages/flutter_tools/test/general.shard/linux/linux_workflow_test.dart @@ -25,7 +25,7 @@ void main() { overrides: { Platform: () => linux, FeatureFlags: () => TestFeatureFlags(isLinuxEnabled: true), - } + }, ); }); diff --git a/packages/flutter_tools/test/general.shard/resident_runner_test.dart b/packages/flutter_tools/test/general.shard/resident_runner_test.dart index 65aafe1287a..b86a76ae334 100644 --- a/packages/flutter_tools/test/general.shard/resident_runner_test.dart +++ b/packages/flutter_tools/test/general.shard/resident_runner_test.dart @@ -81,7 +81,7 @@ void main() { }); when(mockFlutterDevice.devFS).thenReturn(mockDevFS); when(mockFlutterDevice.views).thenReturn([ - mockFlutterView + mockFlutterView, ]); when(mockFlutterDevice.device).thenReturn(mockDevice); when(mockFlutterView.uiIsolate).thenReturn(mockIsolate); diff --git a/packages/flutter_tools/test/general.shard/resident_web_runner_test.dart b/packages/flutter_tools/test/general.shard/resident_web_runner_test.dart index c839508c846..3e678d9b49e 100644 --- a/packages/flutter_tools/test/general.shard/resident_web_runner_test.dart +++ b/packages/flutter_tools/test/general.shard/resident_web_runner_test.dart @@ -155,7 +155,7 @@ void main() { 'type': 'Event', 'kind': 'WriteEvent', 'timestamp': 1569473488296, - 'bytes': base64.encode('THIS MESSAGE IS IMPORTANT'.codeUnits) + 'bytes': base64.encode('THIS MESSAGE IS IMPORTANT'.codeUnits), })); }); unawaited(residentWebRunner.run( diff --git a/packages/flutter_tools/test/general.shard/web/asset_server_test.dart b/packages/flutter_tools/test/general.shard/web/asset_server_test.dart index d475f0a7e0d..c0988025116 100644 --- a/packages/flutter_tools/test/general.shard/web/asset_server_test.dart +++ b/packages/flutter_tools/test/general.shard/web/asset_server_test.dart @@ -33,7 +33,7 @@ void main() { expect(response.headers, { 'Content-Type': 'text/html', - 'content-length': '5' + 'content-length': '5', }); expect(await response.readAsString(), 'hello'); })); diff --git a/packages/flutter_tools/test/general.shard/web/chrome_test.dart b/packages/flutter_tools/test/general.shard/web/chrome_test.dart index de4d53adebd..ba6b7bbebd6 100644 --- a/packages/flutter_tools/test/general.shard/web/chrome_test.dart +++ b/packages/flutter_tools/test/general.shard/web/chrome_test.dart @@ -37,7 +37,7 @@ void main() { return 1234; }); when(platform.environment).thenReturn({ - kChromeEnvironment: 'example_chrome' + kChromeEnvironment: 'example_chrome', }); final Directory mockDirectory = MockDirectory(); when(fs.systemTempDirectory).thenReturn(mockDirectory); @@ -61,7 +61,7 @@ void main() { exitCode: Completer().future, stdout: const Stream>.empty(), stderr: Stream>.fromIterable(>[ - utf8.encode('\n\nDevTools listening\n\n') + utf8.encode('\n\nDevTools listening\n\n'), ]), ); }); diff --git a/packages/flutter_tools/test/general.shard/web/web_fs_test.dart b/packages/flutter_tools/test/general.shard/web/web_fs_test.dart index 475f594070e..e662c7826b6 100644 --- a/packages/flutter_tools/test/general.shard/web/web_fs_test.dart +++ b/packages/flutter_tools/test/general.shard/web/web_fs_test.dart @@ -57,8 +57,8 @@ void main() { DefaultBuildResult((DefaultBuildResultBuilder builder) { builder.target = 'web'; builder.status = BuildStatus.succeeded; - }) - ] + }), + ], ); }) )); @@ -163,8 +163,8 @@ void main() { DefaultBuildResult((DefaultBuildResultBuilder builder) { builder.target = 'web'; builder.status = BuildStatus.failed; - }) - ] + }), + ], ); }) )); diff --git a/packages/flutter_tools/test/general.shard/web/web_validator_test.dart b/packages/flutter_tools/test/general.shard/web/web_validator_test.dart index c95972d6282..07ed413cf02 100644 --- a/packages/flutter_tools/test/general.shard/web/web_validator_test.dart +++ b/packages/flutter_tools/test/general.shard/web/web_validator_test.dart @@ -50,7 +50,7 @@ void main() { when(mockProcessManager.canRun(kMacOSExecutable)).thenReturn(false); final ValidationResult result = await webValidator.validate(); expect(result.messages, [ - ValidationMessage.hint('CHROME_EXECUTABLE not set') + ValidationMessage.hint('CHROME_EXECUTABLE not set'), ]); expect(result.type, ValidationType.missing); })); diff --git a/packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart b/packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart index a128bdd0cf3..4d1f8807dcb 100644 --- a/packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart +++ b/packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart @@ -128,7 +128,7 @@ void main() { userMessages.visualStudioMissing( visualStudio.workloadDescription, visualStudio.necessaryComponentDescriptions(validator.majorVersion), - ) + ), ); expect(result.messages.contains(expectedMessage), true); expect(result.type, ValidationType.missing); diff --git a/packages/flutter_tools/test/general.shard/windows/windows_workflow_test.dart b/packages/flutter_tools/test/general.shard/windows/windows_workflow_test.dart index 86a566b47b4..f7bd240db69 100644 --- a/packages/flutter_tools/test/general.shard/windows/windows_workflow_test.dart +++ b/packages/flutter_tools/test/general.shard/windows/windows_workflow_test.dart @@ -26,7 +26,7 @@ void main() { overrides: { Platform: () => windows, FeatureFlags: () => TestFeatureFlags(isWindowsEnabled: true), - } + }, ); });