diff --git a/packages/flutter/lib/src/cupertino/date_picker.dart b/packages/flutter/lib/src/cupertino/date_picker.dart index 4f40885e9d7..0dcdac7cdfa 100644 --- a/packages/flutter/lib/src/cupertino/date_picker.dart +++ b/packages/flutter/lib/src/cupertino/date_picker.dart @@ -227,7 +227,7 @@ class CupertinoDatePicker extends StatefulWidget { this.maximumYear, this.minuteInterval = 1, this.use24hFormat = false, - this.backgroundColor = _kBackgroundColor + this.backgroundColor = _kBackgroundColor, }) : initialDateTime = initialDateTime ?? DateTime.now(), assert(mode != null), assert(onDateTimeChanged != null), @@ -1206,7 +1206,7 @@ class _CupertinoTimerPickerState extends State { for (String input in numbers) { textPainter.text = TextSpan( text: input, - style: textStyle + style: textStyle, ); textPainter.layout(); @@ -1218,7 +1218,7 @@ class _CupertinoTimerPickerState extends State { textPainter.text = TextSpan( text: '$widestNumber$widestNumber', - style: textStyle + style: textStyle, ); textPainter.layout(); @@ -1251,7 +1251,7 @@ class _CupertinoTimerPickerState extends State { text, style: const TextStyle( fontSize: _kTimerPickerLabelFontSize, - fontWeight: FontWeight.w600 + fontWeight: FontWeight.w600, ), maxLines: 1, softWrap: false, @@ -1320,7 +1320,7 @@ class _CupertinoTimerPickerState extends State { ), _buildLabel( localizations.timerPickerHourLabel(lastSelectedHour ?? selectedHour), - additionalPadding + additionalPadding, ), ], ); @@ -1474,14 +1474,14 @@ class _CupertinoTimerPickerState extends State { // Pad the widget to make it as wide as `_kPickerWidth`. columns = [ _buildHourColumn(const EdgeInsetsDirectional.only(start: paddingValue / 2, end: _kTimerPickerHalfColumnPadding)), - _buildMinuteColumn(const EdgeInsetsDirectional.only(start: _kTimerPickerHalfColumnPadding, end: paddingValue / 2)) + _buildMinuteColumn(const EdgeInsetsDirectional.only(start: _kTimerPickerHalfColumnPadding, end: paddingValue / 2)), ]; break; case CupertinoTimerPickerMode.ms: // Pad the widget to make it as wide as `_kPickerWidth`. columns = [ _buildMinuteColumn(const EdgeInsetsDirectional.only(start: paddingValue / 2, end: _kTimerPickerHalfColumnPadding)), - _buildSecondColumn(const EdgeInsetsDirectional.only(start: _kTimerPickerHalfColumnPadding, end: paddingValue / 2)) + _buildSecondColumn(const EdgeInsetsDirectional.only(start: _kTimerPickerHalfColumnPadding, end: paddingValue / 2)), ]; break; case CupertinoTimerPickerMode.hms: @@ -1490,7 +1490,7 @@ class _CupertinoTimerPickerState extends State { columns = [ _buildHourColumn(const EdgeInsetsDirectional.only(start: paddingValue / 2, end: _kTimerPickerHalfColumnPadding)), _buildMinuteColumn(const EdgeInsetsDirectional.only(start: _kTimerPickerHalfColumnPadding, end: _kTimerPickerHalfColumnPadding)), - _buildSecondColumn(const EdgeInsetsDirectional.only(start: _kTimerPickerHalfColumnPadding, end: paddingValue / 2)) + _buildSecondColumn(const EdgeInsetsDirectional.only(start: _kTimerPickerHalfColumnPadding, end: paddingValue / 2)), ]; break; } diff --git a/packages/flutter/lib/src/cupertino/dialog.dart b/packages/flutter/lib/src/cupertino/dialog.dart index 7f5a9c95667..a211daee7df 100644 --- a/packages/flutter/lib/src/cupertino/dialog.dart +++ b/packages/flutter/lib/src/cupertino/dialog.dart @@ -1159,7 +1159,7 @@ class CupertinoDialogAction extends StatelessWidget { TextStyle style = _kCupertinoDialogActionStyle.copyWith( color: CupertinoDynamicColor.resolve( isDestructiveAction ? CupertinoSystemColors.of(context).systemRed : CupertinoSystemColors.of(context).systemBlue, - context + context, ), ); style = style.merge(textStyle); diff --git a/packages/flutter/lib/src/cupertino/slider.dart b/packages/flutter/lib/src/cupertino/slider.dart index 4c4363be063..7ea9f5025e4 100644 --- a/packages/flutter/lib/src/cupertino/slider.dart +++ b/packages/flutter/lib/src/cupertino/slider.dart @@ -231,7 +231,7 @@ class _CupertinoSliderState extends State with TickerProviderSt divisions: widget.divisions, activeColor: CupertinoDynamicColor.resolve( widget.activeColor ?? CupertinoTheme.of(context).primaryColor, - context + context, ), onChanged: widget.onChanged != null ? _handleChanged : null, onChangeStart: widget.onChangeStart != null ? _handleDragStart : null, diff --git a/packages/flutter/lib/src/cupertino/text_field.dart b/packages/flutter/lib/src/cupertino/text_field.dart index 0fbfbf3d6a6..1fd210dd8e5 100644 --- a/packages/flutter/lib/src/cupertino/text_field.dart +++ b/packages/flutter/lib/src/cupertino/text_field.dart @@ -201,7 +201,7 @@ class CupertinoTextField extends StatefulWidget { this.placeholder, this.placeholderStyle = const TextStyle( fontWeight: FontWeight.w300, - color: _kInactiveTextColor + color: _kInactiveTextColor, ), this.prefix, this.prefixMode = OverlayVisibilityMode.always, diff --git a/packages/flutter/lib/src/cupertino/text_selection.dart b/packages/flutter/lib/src/cupertino/text_selection.dart index 30e23a3e2f4..c20c2a77b91 100644 --- a/packages/flutter/lib/src/cupertino/text_selection.dart +++ b/packages/flutter/lib/src/cupertino/text_selection.dart @@ -335,7 +335,7 @@ class _CupertinoTextSelectionControls extends TextSelectionControls { void addToolbarButtonIfNeeded( String text, bool Function(TextSelectionDelegate) predicate, - void Function(TextSelectionDelegate) onPressed + void Function(TextSelectionDelegate) onPressed, ) { if (!predicate(delegate)) { return; diff --git a/packages/flutter/lib/src/cupertino/theme.dart b/packages/flutter/lib/src/cupertino/theme.dart index 173afb835eb..695aa357606 100644 --- a/packages/flutter/lib/src/cupertino/theme.dart +++ b/packages/flutter/lib/src/cupertino/theme.dart @@ -82,7 +82,7 @@ class CupertinoTheme extends StatelessWidget { child: IconTheme( data: IconThemeData(color: data.primaryColor), child: child, - ) + ), ); } } @@ -348,7 +348,7 @@ class _NoDefaultCupertinoThemeData extends CupertinoThemeData { Color primaryContrastingColor, CupertinoTextThemeData textTheme, Color barBackgroundColor , - Color scaffoldBackgroundColor + Color scaffoldBackgroundColor, }) { return _NoDefaultCupertinoThemeData( brightness ?? this.brightness, diff --git a/packages/flutter/lib/src/gestures/binding.dart b/packages/flutter/lib/src/gestures/binding.dart index 1319db89c20..cdad3588c2c 100644 --- a/packages/flutter/lib/src/gestures/binding.dart +++ b/packages/flutter/lib/src/gestures/binding.dart @@ -252,7 +252,7 @@ class FlutterErrorDetailsForPointerEventDispatcher extends FlutterErrorDetails { library: library, context: context, informationCollector: informationCollector, - silent: silent + silent: silent, ); /// The pointer event that was being routed when the exception was raised. diff --git a/packages/flutter/lib/src/gestures/pointer_router.dart b/packages/flutter/lib/src/gestures/pointer_router.dart index 70466c56198..d090685facf 100644 --- a/packages/flutter/lib/src/gestures/pointer_router.dart +++ b/packages/flutter/lib/src/gestures/pointer_router.dart @@ -136,7 +136,7 @@ class FlutterErrorDetailsForPointerRouter extends FlutterErrorDetails { library: library, context: context, informationCollector: informationCollector, - silent: silent + silent: silent, ); /// The pointer router that caught the exception. diff --git a/packages/flutter/lib/src/gestures/recognizer.dart b/packages/flutter/lib/src/gestures/recognizer.dart index 3044db469ce..ed7ff2dccce 100644 --- a/packages/flutter/lib/src/gestures/recognizer.dart +++ b/packages/flutter/lib/src/gestures/recognizer.dart @@ -189,7 +189,7 @@ abstract class GestureRecognizer extends GestureArenaMember with DiagnosticableT informationCollector: () sync* { yield StringProperty('Handler', name); yield DiagnosticsProperty('Recognizer', this, style: DiagnosticsTreeStyle.errorProperty); - } + }, )); } return result; diff --git a/packages/flutter/lib/src/material/about.dart b/packages/flutter/lib/src/material/about.dart index 8651e7c53bb..f8a8acac28e 100644 --- a/packages/flutter/lib/src/material/about.dart +++ b/packages/flutter/lib/src/material/about.dart @@ -580,7 +580,7 @@ class _LicensePageState extends State { child: Center( child: CircularProgressIndicator(), ), - ) + ), ], ), ), diff --git a/packages/flutter/lib/src/material/banner.dart b/packages/flutter/lib/src/material/banner.dart index 5f603f3795e..d8b5f7af7ad 100644 --- a/packages/flutter/lib/src/material/banner.dart +++ b/packages/flutter/lib/src/material/banner.dart @@ -161,4 +161,4 @@ class MaterialBanner extends StatelessWidget { ), ); } -} \ No newline at end of file +} diff --git a/packages/flutter/lib/src/material/bottom_sheet.dart b/packages/flutter/lib/src/material/bottom_sheet.dart index 80e5bdc100e..f81f064d62e 100644 --- a/packages/flutter/lib/src/material/bottom_sheet.dart +++ b/packages/flutter/lib/src/material/bottom_sheet.dart @@ -391,7 +391,7 @@ class _ModalBottomSheetRoute extends PopupRoute { elevation: elevation, shape: shape, clipBehavior: clipBehavior, - isScrollControlled: isScrollControlled + isScrollControlled: isScrollControlled, ), ); if (theme != null) diff --git a/packages/flutter/lib/src/material/date_picker.dart b/packages/flutter/lib/src/material/date_picker.dart index bead9d44f2a..2633f093cb6 100644 --- a/packages/flutter/lib/src/material/date_picker.dart +++ b/packages/flutter/lib/src/material/date_picker.dart @@ -1037,7 +1037,7 @@ class _DatePickerDialogState extends State<_DatePickerDialog> { crossAxisAlignment: CrossAxisAlignment.stretch, children: [ Flexible(child: picker), - actions + actions, ], ), ), diff --git a/packages/flutter/lib/src/material/dropdown.dart b/packages/flutter/lib/src/material/dropdown.dart index f3d083db9e9..7fdf990b5b7 100644 --- a/packages/flutter/lib/src/material/dropdown.dart +++ b/packages/flutter/lib/src/material/dropdown.dart @@ -1066,7 +1066,7 @@ class DropdownButtonFormField extends FormField { ), ), ); - } + }, ); /// {@macro flutter.material.dropdownButton.onChanged} diff --git a/packages/flutter/lib/src/material/expansion_panel.dart b/packages/flutter/lib/src/material/expansion_panel.dart index 73a43dd06ca..a7c1c347875 100644 --- a/packages/flutter/lib/src/material/expansion_panel.dart +++ b/packages/flutter/lib/src/material/expansion_panel.dart @@ -464,7 +464,7 @@ class _ExpansionPanelListState extends State { expandIconContainer = Semantics( label: _isChildExpanded(index)? localizations.expandedIconTapHint : localizations.collapsedIconTapHint, container: true, - child: expandIconContainer + child: expandIconContainer, ); } Widget header = Row( diff --git a/packages/flutter/lib/src/material/range_slider.dart b/packages/flutter/lib/src/material/range_slider.dart index 45b11842bb6..a529c197d47 100644 --- a/packages/flutter/lib/src/material/range_slider.dart +++ b/packages/flutter/lib/src/material/range_slider.dart @@ -126,7 +126,7 @@ class RangeSlider extends StatefulWidget { this.labels, this.activeColor, this.inactiveColor, - this.semanticFormatterCallback + this.semanticFormatterCallback, }) : assert(values != null), assert(min != null), assert(max != null), @@ -373,17 +373,17 @@ class _RangeSliderState extends State with TickerProviderStateMixin enableController = AnimationController( duration: enableAnimationDuration, vsync: this, - value: widget.onChanged != null ? 1.0 : 0.0 + value: widget.onChanged != null ? 1.0 : 0.0, ); startPositionController = AnimationController( duration: Duration.zero, vsync: this, - value: _unlerp(widget.values.start) + value: _unlerp(widget.values.start), ); endPositionController = AnimationController( duration: Duration.zero, vsync: this, - value: _unlerp(widget.values.end) + value: _unlerp(widget.values.end), ); } @@ -1151,7 +1151,7 @@ class _RenderRangeSlider extends RenderBox { parentBox: this, offset: offset, sliderTheme: _sliderTheme, - isDiscrete: isDiscrete + isDiscrete: isDiscrete, ); final Offset startThumbCenter = Offset(trackRect.left + startVisualPosition * trackRect.width, trackRect.center.dy); final Offset endThumbCenter = Offset(trackRect.left + endVisualPosition * trackRect.width, trackRect.center.dy); @@ -1166,7 +1166,7 @@ class _RenderRangeSlider extends RenderBox { startThumbCenter: startThumbCenter, endThumbCenter: endThumbCenter, isDiscrete: isDiscrete, - isEnabled: isEnabled + isEnabled: isEnabled, ); if (!_overlayAnimation.isDismissed) { diff --git a/packages/flutter/lib/src/material/scaffold.dart b/packages/flutter/lib/src/material/scaffold.dart index 5856e5dc5bc..82bbdb6e834 100644 --- a/packages/flutter/lib/src/material/scaffold.dart +++ b/packages/flutter/lib/src/material/scaffold.dart @@ -339,7 +339,7 @@ class _BodyBuilder extends StatelessWidget { Key key, @required this.extendBody, @required this.extendBodyBehindAppBar, - @required this.body + @required this.body, }) : assert(extendBody != null), assert(extendBodyBehindAppBar != null), assert(body != null), @@ -2139,7 +2139,7 @@ class ScaffoldState extends State with TickerProviderStateMixin { widget.body == null ? null : _BodyBuilder( extendBody: widget.extendBody, extendBodyBehindAppBar: widget.extendBodyBehindAppBar, - body: widget.body + body: widget.body, ), _ScaffoldSlot.body, removeLeftPadding: false, @@ -2450,7 +2450,7 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> { child: NotificationListener( onNotification: extentChanged, child: bottomSheet, - ) + ), ); } @@ -2463,7 +2463,7 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> { return Align( alignment: AlignmentDirectional.topStart, heightFactor: widget.animationController.value, - child: child + child: child, ); }, child: _wrapBottomSheet( diff --git a/packages/flutter/lib/src/material/slider_theme.dart b/packages/flutter/lib/src/material/slider_theme.dart index 219d697cf28..0aaeabe504c 100644 --- a/packages/flutter/lib/src/material/slider_theme.dart +++ b/packages/flutter/lib/src/material/slider_theme.dart @@ -2849,13 +2849,13 @@ typedef RangeSemanticFormatterCallback = String Function(RangeValues values); /// /// Override [RangeSlider.thumbSelector] for custom thumb selection. typedef RangeThumbSelector = Thumb Function( - TextDirection textDirection, - RangeValues values, - double tapValue, - Size thumbSize, - Size trackSize, - double dx - ); + TextDirection textDirection, + RangeValues values, + double tapValue, + Size thumbSize, + Size trackSize, + double dx, +); /// Object for representing range slider thumb values. /// diff --git a/packages/flutter/lib/src/material/theme.dart b/packages/flutter/lib/src/material/theme.dart index cfe015f42a7..b088f0950be 100644 --- a/packages/flutter/lib/src/material/theme.dart +++ b/packages/flutter/lib/src/material/theme.dart @@ -153,7 +153,7 @@ class Theme extends StatelessWidget { data: data.iconTheme, child: child, ), - ) + ), ); } diff --git a/packages/flutter/lib/src/material/time_picker.dart b/packages/flutter/lib/src/material/time_picker.dart index 78ba676a014..ee9318052cb 100644 --- a/packages/flutter/lib/src/material/time_picker.dart +++ b/packages/flutter/lib/src/material/time_picker.dart @@ -259,7 +259,7 @@ class _DayPeriodControl extends StatelessWidget { heightFactor: 1, child: Semantics( selected: amSelected, - child: Text(materialLocalizations.anteMeridiemAbbreviation, style: amStyle) + child: Text(materialLocalizations.anteMeridiemAbbreviation, style: amStyle), ), ), ), @@ -467,9 +467,8 @@ class _MinuteControl extends StatelessWidget { _TimePickerHeaderFormat _buildHeaderFormat( TimeOfDayFormat timeOfDayFormat, _TimePickerFragmentContext context, - Orientation orientation + Orientation orientation, ) { - // Creates an hour fragment. _TimePickerHeaderFragment hour() { return _TimePickerHeaderFragment( diff --git a/packages/flutter/lib/src/material/toggle_buttons.dart b/packages/flutter/lib/src/material/toggle_buttons.dart index 9671901f5a4..ed5def056a1 100644 --- a/packages/flutter/lib/src/material/toggle_buttons.dart +++ b/packages/flutter/lib/src/material/toggle_buttons.dart @@ -913,9 +913,9 @@ class _SelectToggleButtonRenderObject extends RenderShiftedBox { this._borderRadius, this._isFirstButton, this._isLastButton, - this._textDirection, - [RenderBox child] - ) : super(child); + this._textDirection, [ + RenderBox child, + ]) : super(child); // The width and color of the button's leading side border. BorderSide get leadingBorderSide => _leadingBorderSide; diff --git a/packages/flutter/lib/src/painting/inline_span.dart b/packages/flutter/lib/src/painting/inline_span.dart index ccbca2eda85..e3272dc5110 100644 --- a/packages/flutter/lib/src/painting/inline_span.dart +++ b/packages/flutter/lib/src/painting/inline_span.dart @@ -54,7 +54,7 @@ class InlineSpanSemanticsInformation { this.text, { this.isPlaceholder = false, this.semanticsLabel, - this.recognizer + this.recognizer, }) : assert(text != null), assert(isPlaceholder != null), assert(isPlaceholder == false || (text == '\uFFFC' && semanticsLabel == null && recognizer == null)), diff --git a/packages/flutter/lib/src/rendering/binding.dart b/packages/flutter/lib/src/rendering/binding.dart index 10c0d396ba6..efe78c0e744 100644 --- a/packages/flutter/lib/src/rendering/binding.dart +++ b/packages/flutter/lib/src/rendering/binding.dart @@ -96,7 +96,7 @@ mixin RendererBinding on BindingBase, ServicesBinding, SchedulerBinding, Gesture } debugCheckElevationsEnabled = value; return _forceRepaint(); - } + }, ); registerSignalServiceExtension( name: 'debugDumpLayerTree', diff --git a/packages/flutter/lib/src/rendering/box.dart b/packages/flutter/lib/src/rendering/box.dart index 40761308599..ac1fcb02211 100644 --- a/packages/flutter/lib/src/rendering/box.dart +++ b/packages/flutter/lib/src/rendering/box.dart @@ -1313,7 +1313,7 @@ abstract class RenderBox extends RenderObject { throw FlutterError.fromParts([ ErrorSummary('The height argument to getMinIntrinsicWidth was null.'), ErrorDescription('The argument to getMinIntrinsicWidth must not be negative or null.'), - ErrorHint('If you do not have a specific height in mind, then pass double.infinity instead.') + ErrorHint('If you do not have a specific height in mind, then pass double.infinity instead.'), ]); } if (height < 0.0) { @@ -1454,7 +1454,7 @@ abstract class RenderBox extends RenderObject { throw FlutterError.fromParts([ ErrorSummary('The height argument to getMaxIntrinsicWidth was null.'), ErrorDescription('The argument to getMaxIntrinsicWidth must not be negative or null.'), - ErrorHint('If you do not have a specific height in mind, then pass double.infinity instead.') + ErrorHint('If you do not have a specific height in mind, then pass double.infinity instead.'), ]); } if (height < 0.0) { @@ -1465,7 +1465,7 @@ abstract class RenderBox extends RenderObject { 'If you perform computations on another height before passing it to ' 'getMaxIntrinsicWidth, consider using math.max() or double.clamp() ' 'to force the value into the valid range.' - ) + ), ]); } return true; @@ -1532,7 +1532,7 @@ abstract class RenderBox extends RenderObject { throw FlutterError.fromParts([ ErrorSummary('The width argument to getMinIntrinsicHeight was null.'), ErrorDescription('The argument to getMinIntrinsicHeight must not be negative or null.'), - ErrorHint('If you do not have a specific width in mind, then pass double.infinity instead.') + ErrorHint('If you do not have a specific width in mind, then pass double.infinity instead.'), ]); } if (width < 0.0) { @@ -1543,7 +1543,7 @@ abstract class RenderBox extends RenderObject { 'If you perform computations on another width before passing it to ' 'getMinIntrinsicHeight, consider using math.max() or double.clamp() ' 'to force the value into the valid range.' - ) + ), ]); } return true; @@ -1607,7 +1607,7 @@ abstract class RenderBox extends RenderObject { throw FlutterError.fromParts([ ErrorSummary('The width argument to getMaxIntrinsicHeight was null.'), ErrorDescription('The argument to getMaxIntrinsicHeight must not be negative or null.'), - ErrorHint('If you do not have a specific width in mind, then pass double.infinity instead.') + ErrorHint('If you do not have a specific width in mind, then pass double.infinity instead.'), ]); } if (width < 0.0) { @@ -1618,7 +1618,7 @@ abstract class RenderBox extends RenderObject { 'If you perform computations on another width before passing it to ' 'getMaxIntrinsicHeight, consider using math.max() or double.clamp() ' 'to force the value into the valid range.' - ) + ), ]); } return true; @@ -1794,7 +1794,7 @@ abstract class RenderBox extends RenderObject { 'It is important to tell the framework if the size will be used or not ' 'as several important performance optimizations can be made if the ' 'size will not be used by the parent.' - ) + ), ]); } } @@ -1921,7 +1921,7 @@ abstract class RenderBox extends RenderObject { ErrorSummary('RenderBox did not set its size during layout.'), contract, ErrorDescription('It appears that this did not happen; layout completed, but the size property is still null.'), - DiagnosticsProperty('The RenderBox in question is', this, style: DiagnosticsTreeStyle.errorProperty) + DiagnosticsProperty('The RenderBox in question is', this, style: DiagnosticsTreeStyle.errorProperty), ]); } // verify that the size is not infinite @@ -1932,7 +1932,7 @@ abstract class RenderBox extends RenderObject { 'This probably means that it is a render object that tries to be ' 'as big as possible, but it was put inside another render object ' 'that allows its children to pick their own size.' - ) + ), ]; if (!constraints.hasBoundedWidth) { RenderBox node = this; @@ -2055,7 +2055,7 @@ abstract class RenderBox extends RenderObject { 'RenderBox subclasses need to either override performLayout() to ' 'set a size and lay out any children, or, set sizedByParent to true ' 'so that performResize() sizes the render object.' - ) + ), ]); } return true; @@ -2103,7 +2103,7 @@ abstract class RenderBox extends RenderObject { 'to perform a hit test during the layout phase itself, make sure ' 'you only hit test nodes that have completed layout (e.g. the node\'s ' 'children, after their layout() method has been called).' - ) + ), ]); } throw FlutterError.fromParts([ @@ -2194,7 +2194,7 @@ abstract class RenderBox extends RenderObject { 'Since $runtimeType does not in fact use that ParentData class for its children, it must ' 'provide an implementation of applyPaintTransform that supports the specific ParentData ' 'subclass used by its children (which apparently is ${child.parentData.runtimeType}).' - ) + ), ]); } return true; diff --git a/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart b/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart index 772df204858..d7eeb8931e5 100644 --- a/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart +++ b/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart @@ -254,7 +254,7 @@ mixin DebugOverflowIndicatorMixin on RenderObject { // handle a little more generically in GUI debugging clients in the // future. yield DiagnosticsNode.message('◢◤' * (FlutterError.wrapWidth ~/ 2), allowWrap: false); - } + }, ), ); } diff --git a/packages/flutter/lib/src/rendering/flex.dart b/packages/flutter/lib/src/rendering/flex.dart index 2db99f0ca70..587d1691824 100644 --- a/packages/flutter/lib/src/rendering/flex.dart +++ b/packages/flutter/lib/src/rendering/flex.dart @@ -713,7 +713,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin[ _highlightConflictingLayer(predecessor), diff --git a/packages/flutter/lib/src/rendering/object.dart b/packages/flutter/lib/src/rendering/object.dart index ad4dc631f1f..1b7d30fccc0 100644 --- a/packages/flutter/lib/src/rendering/object.dart +++ b/packages/flutter/lib/src/rendering/object.dart @@ -1276,7 +1276,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im // users. Inspector users can see the full tree by clicking on the // render object so this may not be that useful. yield describeForError('RenderObject', style: DiagnosticsTreeStyle.truncateChildren); - } + }, )); } @@ -2143,7 +2143,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im ErrorDescription( 'Since this typically indicates an infinite recursion, it is ' 'disallowed.' - ) + ), ]); } return true; @@ -2175,7 +2175,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im ), ErrorHint( 'This usually indicates an error in the Flutter framework itself.' - ) + ), ]); } return true; @@ -2860,7 +2860,7 @@ mixin RenderObjectWithChildMixin on RenderObject 'was created by', child.debugCreator, style: DiagnosticsTreeStyle.errorProperty, - ) + ), ]); } return true; @@ -3235,7 +3235,7 @@ class FlutterErrorDetailsForRendering extends FlutterErrorDetails { library: library, context: context, informationCollector: informationCollector, - silent: silent + silent: silent, ); /// The RenderObject that was being processed when the exception was caught. @@ -3779,11 +3779,11 @@ class _SemanticsGeometry { class DiagnosticsDebugCreator extends DiagnosticsProperty { /// Create a [DiagnosticsProperty] with its [value] initialized to input /// [RenderObject.debugCreator]. - DiagnosticsDebugCreator(Object value): - assert(value != null), - super( - 'debugCreator', - value, - level: DiagnosticLevel.hidden - ); + DiagnosticsDebugCreator(Object value) + : assert(value != null), + super( + 'debugCreator', + value, + level: DiagnosticLevel.hidden, + ); } diff --git a/packages/flutter/lib/src/rendering/paragraph.dart b/packages/flutter/lib/src/rendering/paragraph.dart index 4dd8fa124b3..6c132095049 100644 --- a/packages/flutter/lib/src/rendering/paragraph.dart +++ b/packages/flutter/lib/src/rendering/paragraph.dart @@ -482,7 +482,7 @@ class RenderParagraph extends RenderBox BoxConstraints( maxWidth: constraints.maxWidth, ), - parentUsesSize: true + parentUsesSize: true, ); double baselineOffset; switch (_placeholderSpans[childIndex].alignment) { @@ -516,7 +516,7 @@ class RenderParagraph extends RenderBox final TextParentData textParentData = child.parentData; textParentData.offset = Offset( _textPainter.inlinePlaceholderBoxes[childIndex].left, - _textPainter.inlinePlaceholderBoxes[childIndex].top + _textPainter.inlinePlaceholderBoxes[childIndex].top, ); textParentData.scale = _textPainter.inlinePlaceholderScales[childIndex]; child = childAfter(child); diff --git a/packages/flutter/lib/src/rendering/proxy_box.dart b/packages/flutter/lib/src/rendering/proxy_box.dart index c72aadd9ff6..9117dc28ec7 100644 --- a/packages/flutter/lib/src/rendering/proxy_box.dart +++ b/packages/flutter/lib/src/rendering/proxy_box.dart @@ -1660,7 +1660,7 @@ class RenderPhysicalModel extends _RenderPhysicalModelBase { child: child, elevation: elevation, color: color, - shadowColor: shadowColor + shadowColor: shadowColor, ); @override @@ -1802,7 +1802,7 @@ class RenderPhysicalShape extends _RenderPhysicalModelBase { color: color, shadowColor: shadowColor, clipper: clipper, - clipBehavior: clipBehavior + clipBehavior: clipBehavior, ); @override diff --git a/packages/flutter/lib/src/rendering/sliver.dart b/packages/flutter/lib/src/rendering/sliver.dart index 5789993a9f4..de145352383 100644 --- a/packages/flutter/lib/src/rendering/sliver.dart +++ b/packages/flutter/lib/src/rendering/sliver.dart @@ -421,7 +421,7 @@ class SliverConstraints extends Constraints { ErrorSummary('$runtimeType is not valid: $message'), if (informationCollector != null) ...informationCollector(), - DiagnosticsProperty('The offending constraints were', this, style: DiagnosticsTreeStyle.errorProperty) + DiagnosticsProperty('The offending constraints were', this, style: DiagnosticsTreeStyle.errorProperty), ]); } verify(axis != null, 'The "axis" is null.'); @@ -724,7 +724,7 @@ class SliverGeometry extends Diagnosticable { 'The "maxPaintExtent" is less than the "paintExtent".', details: _debugCompareFloats('maxPaintExtent', maxPaintExtent, 'paintExtent', paintExtent) - ..add(ErrorDescription('By definition, a sliver can\'t paint more than the maximum that it can paint!')) + ..add(ErrorDescription('By definition, a sliver can\'t paint more than the maximum that it can paint!')), ); } verify(hitTestExtent != null, 'The "hitTestExtent" is null.'); diff --git a/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart b/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart index 4916cf615a8..5a607fbd518 100644 --- a/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart +++ b/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart @@ -204,13 +204,15 @@ abstract class RenderSliverFixedExtentBoxAdaptor extends RenderSliverMultiBoxAda } else { // We will have to find it manually. int possibleFirstIndex = firstIndex - 1; - while (possibleFirstIndex > 0 && + while ( + possibleFirstIndex > 0 && !addInitialChild( index: possibleFirstIndex, - layoutOffset: indexToLayoutOffset(itemExtent, possibleFirstIndex) + layoutOffset: indexToLayoutOffset(itemExtent, possibleFirstIndex), ) - ) + ) { possibleFirstIndex -= 1; + } max = possibleFirstIndex * itemExtent; } geometry = SliverGeometry( @@ -283,7 +285,7 @@ abstract class RenderSliverFixedExtentBoxAdaptor extends RenderSliverMultiBoxAda lastIndex: lastIndex, leadingScrollOffset: leadingScrollOffset, trailingScrollOffset: trailingScrollOffset, - ) + ), ); final double paintExtent = calculatePaintOffset( diff --git a/packages/flutter/lib/src/semantics/semantics.dart b/packages/flutter/lib/src/semantics/semantics.dart index 22f2683a065..456decac1fb 100644 --- a/packages/flutter/lib/src/semantics/semantics.dart +++ b/packages/flutter/lib/src/semantics/semantics.dart @@ -1366,7 +1366,7 @@ class SemanticsNode extends AbstractNode with DiagnosticableTreeMixin { ErrorSummary('Failed to replace child semantics nodes because the list of `SemanticsNode`s was mutated.'), ErrorHint('Instead of mutating the existing list, create a new list containing the desired `SemanticsNode`s.'), ErrorDescription('Error details:'), - ...mutationErrors + ...mutationErrors, ]); } } diff --git a/packages/flutter/lib/src/services/text_editing.dart b/packages/flutter/lib/src/services/text_editing.dart index 6b365e8037d..757d6967014 100644 --- a/packages/flutter/lib/src/services/text_editing.dart +++ b/packages/flutter/lib/src/services/text_editing.dart @@ -106,7 +106,7 @@ class TextSelection extends TextRange { this.isDirectional = false, }) : super( start: baseOffset < extentOffset ? baseOffset : extentOffset, - end: baseOffset < extentOffset ? extentOffset : baseOffset + end: baseOffset < extentOffset ? extentOffset : baseOffset, ); /// Creates a collapsed selection at the given offset. diff --git a/packages/flutter/lib/src/widgets/draggable_scrollable_sheet.dart b/packages/flutter/lib/src/widgets/draggable_scrollable_sheet.dart index 52ae6081879..76de90a4f9d 100644 --- a/packages/flutter/lib/src/widgets/draggable_scrollable_sheet.dart +++ b/packages/flutter/lib/src/widgets/draggable_scrollable_sheet.dart @@ -520,7 +520,7 @@ class DraggableScrollableActuator extends StatelessWidget { /// The [child] parameter is required. DraggableScrollableActuator({ Key key, - @required this.child + @required this.child, }) : super(key: key); /// This child's [DraggableScrollableSheet] descendant will be reset when the diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index 279b1357553..71819915096 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -395,8 +395,8 @@ class EditableText extends StatefulWidget { copy: true, cut: true, paste: true, - selectAll: true - ) + selectAll: true, + ), }) : assert(controller != null), assert(focusNode != null), assert(obscureText != null), diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index b0bccf3d3e0..ca3de1c0fc1 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -171,7 +171,7 @@ abstract class GlobalKey> extends Key { '- $older\n' '- $newer\n' 'A GlobalKey can only be specified on one widget at a time in the widget tree.' - ) + ), ]); } throw FlutterError.fromParts([ @@ -1133,7 +1133,7 @@ abstract class State extends Diagnosticable { 'hasn\'t been inserted into the widget tree yet. It is not necessary to call ' 'setState() in the constructor, since the state is already assumed to be dirty ' 'when it is initially created.' - ) + ), ]); } return true; @@ -1151,7 +1151,7 @@ abstract class State extends Diagnosticable { 'Instead of performing asynchronous work inside a call to setState(), first ' 'execute the work (without updating the widget state), and then synchronously ' 'update the state inside a call to setState().' - ) + ), ]); } // We ignore other types of return values so that you can do things like: @@ -2197,7 +2197,7 @@ class BuildOwner { 'If you did not attempt to call scheduleBuildFor() yourself, then this probably ' 'indicates a bug in the widgets framework. Please report it:\n' ' https://github.com/flutter/flutter/issues/new?template=BUG.md' - ) + ), ]); } return true; @@ -2212,7 +2212,7 @@ class BuildOwner { ErrorHint( 'The BuildOwner.scheduleBuildFor() method should only be called while the ' 'buildScope() method is actively rebuilding the widget tree.' - ) + ), ]); } return true; @@ -2372,7 +2372,7 @@ class BuildOwner { throw FlutterError.fromParts([ ErrorSummary('buildScope missed some dirty elements.'), ErrorHint('This probably indicates that the dirty list should have been resorted but was not.'), - Element.describeElements('The list of dirty elements at the end of the buildScope call was', _dirtyElements) + Element.describeElements('The list of dirty elements at the end of the buildScope call was', _dirtyElements), ]); } return true; @@ -2501,7 +2501,7 @@ class BuildOwner { 'due to GlobalKey reparenting $are:\n' '- ${elementLabels.join("\n ")}' '\nA GlobalKey can only be specified on one widget at a time in the widget tree.' - ) + ), ]); } } @@ -2824,7 +2824,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { 'build because the child list is still being updated at that point, ' 'so the children might not be constructed yet, or might be old children ' 'that are going to be replaced.' - ) + ), ]); }()); visitChildren(visitor); @@ -3043,7 +3043,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { parent.describeElement('The parent of the widgets with that key was'), element.describeElement('The first child to get instantiated with that key became'), DiagnosticsProperty('The second child that was to be instantiated with that key was', widget, style: DiagnosticsTreeStyle.errorProperty), - ErrorDescription('A GlobalKey can only be specified on one widget at a time in the widget tree.') + ErrorDescription('A GlobalKey can only be specified on one widget at a time in the widget tree.'), ]); } parent.owner._debugTrackElementThatWillNeedToBeRebuiltDueToGlobalKeyShenanigans( @@ -3279,7 +3279,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { 'active, which means it is part of the tree.\n' 'Instead, this element is in the $_debugLifecycleState state.' ), - describeElement('The size getter was called for the following element') + describeElement('The size getter was called for the following element'), ]); } if (owner._debugBuilding) { @@ -3301,7 +3301,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { 'for more details.' ), ErrorSpacer(), - describeElement('The size getter was called for the following element') + describeElement('The size getter was called for the following element'), ]); } return true; @@ -3318,7 +3318,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { 'too early in the pipeline (e.g., during the build phase) before the ' 'framework has created the render tree.' ), - describeElement('The size getter was called for the following element') + describeElement('The size getter was called for the following element'), ]); } if (renderObject is RenderSliver) { @@ -3346,7 +3346,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { 'and extracting its size manually.' ), describeElement('The size getter was called for the following element'), - renderObject.describeForError('The associated render object was') + renderObject.describeForError('The associated render object was'), ]); } final RenderBox box = renderObject; @@ -3361,7 +3361,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { 'the size and position of the render objects during layout.' ), describeElement('The size getter was called for the following element'), - box.describeForError('The render object from which the size was to be obtained was') + box.describeForError('The render object from which the size was to be obtained was'), ]); } if (box.debugNeedsLayout) { @@ -3406,7 +3406,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { 'To safely refer to a widget\'s ancestor in its dispose() method, ' 'save a reference to the ancestor by calling inheritFromWidgetOfExactType() ' 'in the widget\'s didChangeDependencies() method.' - ) + ), ]); } return true; @@ -3534,7 +3534,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { ' * file I/O event\n' ' * timer\n' ' * microtask (caused by Future.then, async/await, scheduleMicrotask)' - ) + ), ]); } return true; @@ -3673,7 +3673,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { ), describeElement( 'The widget on which setState() or markNeedsBuild() was called was', - ) + ), ]; if (owner._debugCurrentBuildTarget != null) information.add(owner._debugCurrentBuildTarget.describeWidget('The widget which was currently being built when the offending call was made was')); @@ -3688,7 +3688,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { 'This ${widget.runtimeType} widget cannot be marked as needing to build ' 'because the framework is locked.' ), - describeElement('The widget on which setState() or markNeedsBuild() was called was') + describeElement('The widget on which setState() or markNeedsBuild() was called was'), ]); } return true; @@ -4024,7 +4024,7 @@ class StatefulElement extends ComponentElement { 'The createState function for ${widget.runtimeType} returned a state ' 'of type ${_state.runtimeType}, which is not a subtype of ' 'State<${widget.runtimeType}>, violating the contract for createState.' - ) + ), ]); } return true; @@ -4067,7 +4067,7 @@ class StatefulElement extends ComponentElement { ErrorHint( 'Rather than awaiting on asynchronous work directly inside of initState, ' 'call a separate method to do this work without awaiting it.' - ) + ), ]); } return true; @@ -4102,7 +4102,7 @@ class StatefulElement extends ComponentElement { ErrorHint( 'Rather than awaiting on asynchronous work directly inside of didUpdateWidget, ' 'call a separate method to do this work without awaiting it.' - ) + ), ]); } return true; @@ -4141,7 +4141,7 @@ class StatefulElement extends ComponentElement { ErrorDescription( 'dispose() implementations must always call their superclass dispose() method, to ensure ' 'that all the resources used by the widget are fully released.' - ) + ), ]); }()); _state._element = null; @@ -4167,7 +4167,7 @@ class StatefulElement extends ComponentElement { 'Typically references to inherited widgets should occur in widget build() methods. Alternatively, ' 'initialization based on inherited widgets can be placed in the didChangeDependencies method, which ' 'is called after initState and whenever the dependencies change thereafter.' - ) + ), ]); } if (state._debugLifecycleState == _StateLifecycle.defunct) { diff --git a/packages/flutter/lib/src/widgets/heroes.dart b/packages/flutter/lib/src/widgets/heroes.dart index 9d49c02643b..cccb9f1721b 100644 --- a/packages/flutter/lib/src/widgets/heroes.dart +++ b/packages/flutter/lib/src/widgets/heroes.dart @@ -395,7 +395,7 @@ class _HeroState extends State { child: TickerMode( enabled: !showPlaceholder, child: KeyedSubtree(key: _key, child: widget.child), - ) + ), ), ); } diff --git a/packages/flutter/lib/src/widgets/inherited_theme.dart b/packages/flutter/lib/src/widgets/inherited_theme.dart index 0704f3d360e..9e8430018b4 100644 --- a/packages/flutter/lib/src/widgets/inherited_theme.dart +++ b/packages/flutter/lib/src/widgets/inherited_theme.dart @@ -138,7 +138,7 @@ class _CaptureAll extends StatelessWidget { const _CaptureAll({ Key key, @required this.themes, - @required this.child + @required this.child, }) : assert(themes != null), assert(child != null), super(key: key); final List themes; diff --git a/packages/flutter/lib/src/widgets/platform_view.dart b/packages/flutter/lib/src/widgets/platform_view.dart index 54a0667e623..25a7197873a 100644 --- a/packages/flutter/lib/src/widgets/platform_view.dart +++ b/packages/flutter/lib/src/widgets/platform_view.dart @@ -501,7 +501,7 @@ class _AndroidViewState extends State { creationParamsCodec: widget.creationParamsCodec, onFocus: () { _focusNode.requestFocus(); - } + }, ); if (widget.onPlatformViewCreated != null) { _controller.addOnPlatformViewCreatedListener(widget.onPlatformViewCreated); diff --git a/packages/flutter/lib/src/widgets/scrollbar.dart b/packages/flutter/lib/src/widgets/scrollbar.dart index ebf405a70bc..e2951222308 100644 --- a/packages/flutter/lib/src/widgets/scrollbar.dart +++ b/packages/flutter/lib/src/widgets/scrollbar.dart @@ -213,7 +213,7 @@ class ScrollbarPainter extends ChangeNotifier implements CustomPainter { final double thumbExtent = math.max( math.min(_trackExtent, minOverscrollLength), - _trackExtent * fractionVisible + _trackExtent * fractionVisible, ); final double fractionOverscrolled = 1.0 - _lastMetrics.extentInside / _lastMetrics.viewportDimension; diff --git a/packages/flutter/lib/src/widgets/text_selection.dart b/packages/flutter/lib/src/widgets/text_selection.dart index d92e30d83cc..445e5ebf8ba 100644 --- a/packages/flutter/lib/src/widgets/text_selection.dart +++ b/packages/flutter/lib/src/widgets/text_selection.dart @@ -1098,7 +1098,7 @@ class TextSelectionGestureDetectorBuilder { Widget buildGestureDetector({ Key key, HitTestBehavior behavior, - Widget child + Widget child, }) { return TextSelectionGestureDetector( key: key, diff --git a/packages/flutter/test/cupertino/button_test.dart b/packages/flutter/test/cupertino/button_test.dart index 2587f6b0e2c..7b29978878a 100644 --- a/packages/flutter/test/cupertino/button_test.dart +++ b/packages/flutter/test/cupertino/button_test.dart @@ -247,7 +247,7 @@ void main() { color: bgColor, disabledColor: inactive, onPressed: () { }, - )) + )), ), ); @@ -265,7 +265,7 @@ void main() { color: bgColor, disabledColor: inactive, onPressed: null, - )) + )), ), ); diff --git a/packages/flutter/test/cupertino/colors_test.dart b/packages/flutter/test/cupertino/colors_test.dart index d5a26f523bf..89cea7bc067 100644 --- a/packages/flutter/test/cupertino/colors_test.dart +++ b/packages/flutter/test/cupertino/colors_test.dart @@ -12,7 +12,7 @@ import '../rendering/mock_canvas.dart'; class DependentWidget extends StatelessWidget { const DependentWidget({ Key key, - this.color + this.color, }) : super(key: key); final Color color; @@ -110,7 +110,7 @@ void main() { darkHighContrastColor: color5, highContrastElevatedColor: color6, darkHighContrastElevatedColor: color7, - ) + ), ); expect(notSoDynamicColor1, isNot(vibrancyDependentColor1)); @@ -139,7 +139,7 @@ void main() { 'elevatedColor = Color(0xff000002), ' 'darkElevatedColor = Color(0xff000004), ' 'highContrastElevatedColor = Color(0xff000006), ' - 'darkHighContrastElevatedColor = Color(0xff000007))' + 'darkHighContrastElevatedColor = Color(0xff000007))', ); expect(notSoDynamicColor1.toString(), 'CupertinoDynamicColor(*color = Color(0xff000000)*)'); expect(vibrancyDependentColor1.toString(), 'CupertinoDynamicColor(*color = Color(0xff000001)*, darkColor = Color(0xff000000))'); @@ -656,11 +656,11 @@ void main() { group('CupertinoSystemColors', () { const Color dynamicColor0 = CupertinoDynamicColor.withBrightness( color: Color(0x00000000), - darkColor: Color(0x00000000) + darkColor: Color(0x00000000), ); const Color dynamicColor1 = CupertinoDynamicColor.withBrightness( color: Color(0x00000001), - darkColor: Color(0x00000000) + darkColor: Color(0x00000000), ); const CupertinoSystemColorsData system0 = CupertinoSystemColorsData( diff --git a/packages/flutter/test/cupertino/date_picker_test.dart b/packages/flutter/test/cupertino/date_picker_test.dart index 507e10c9fc6..8c0de65dc87 100644 --- a/packages/flutter/test/cupertino/date_picker_test.dart +++ b/packages/flutter/test/cupertino/date_picker_test.dart @@ -356,7 +356,7 @@ void main() { onDateTimeChanged: (DateTime d) => newDateTime = d, initialDateTime: DateTime(2018, 10, 10, 10, 3), minuteInterval: 3, - ) + ), ), ) ) @@ -887,7 +887,7 @@ void main() { mode: CupertinoDatePickerMode.dateAndTime, initialDateTime: DateTime(2019, 1, 1, 4), onDateTimeChanged: (_) {}, - ) + ), ), ) ) @@ -914,7 +914,7 @@ void main() { initialDateTime: DateTime(2019, 1, 1, 4), onDateTimeChanged: (_) {}, ), - ) + ), ), ) ) @@ -963,7 +963,7 @@ void main() { initialTimerDuration: const Duration(hours: 23, minutes: 59), onTimerDurationChanged: (_) {}, ), - ) + ), ), ), ), diff --git a/packages/flutter/test/cupertino/material/tab_scaffold_test.dart b/packages/flutter/test/cupertino/material/tab_scaffold_test.dart index 7b52ce7d6d8..cea9d1c5bc9 100644 --- a/packages/flutter/test/cupertino/material/tab_scaffold_test.dart +++ b/packages/flutter/test/cupertino/material/tab_scaffold_test.dart @@ -232,7 +232,7 @@ void main() { tabBar: CupertinoTabBar( items: List.generate( 10, - (int i) => BottomNavigationBarItem(icon: const ImageIcon(TestImageProvider(24, 23)), title: Text('$i')) + (int i) => BottomNavigationBarItem(icon: const ImageIcon(TestImageProvider(24, 23)), title: Text('$i')), ), ), tabBuilder: (BuildContext context, int index) => const Text('content'), diff --git a/packages/flutter/test/cupertino/nav_bar_test.dart b/packages/flutter/test/cupertino/nav_bar_test.dart index 2a1ae3abcfc..521606e0cc3 100644 --- a/packages/flutter/test/cupertino/nav_bar_test.dart +++ b/packages/flutter/test/cupertino/nav_bar_test.dart @@ -981,7 +981,7 @@ void main() { await tester.pump(const Duration(milliseconds: 500)); expect(find.widgetWithText(CupertinoButton, 'An iPod'), findsOneWidget); - } + }, ); testWidgets( @@ -1036,7 +1036,7 @@ void main() { expect(find.text('A Phone'), findsOneWidget); // Custom onPressed called. expect(backPressed, true); - } + }, ); testWidgets('textScaleFactor is set to 1.0', (WidgetTester tester) async { diff --git a/packages/flutter/test/cupertino/refresh_test.dart b/packages/flutter/test/cupertino/refresh_test.dart index ff2fda23c7b..7faf25d1897 100644 --- a/packages/flutter/test/cupertino/refresh_test.dart +++ b/packages/flutter/test/cupertino/refresh_test.dart @@ -456,7 +456,7 @@ void main() { expect(e, error); expect(errorCount, 0); errorCount++; - } + }, ); debugDefaultTargetPlatformOverride = null; diff --git a/packages/flutter/test/cupertino/scaffold_test.dart b/packages/flutter/test/cupertino/scaffold_test.dart index 20b6b6b4e76..fb99648d4ea 100644 --- a/packages/flutter/test/cupertino/scaffold_test.dart +++ b/packages/flutter/test/cupertino/scaffold_test.dart @@ -126,7 +126,7 @@ void main() { textDirection: TextDirection.ltr, child: MediaQuery( data: MediaQueryData(viewInsets: EdgeInsets.only(bottom: 20.0)), - child: child + child: child, ), ) ); diff --git a/packages/flutter/test/cupertino/segmented_control_test.dart b/packages/flutter/test/cupertino/segmented_control_test.dart index 71556c81715..8dd9169d56b 100644 --- a/packages/flutter/test/cupertino/segmented_control_test.dart +++ b/packages/flutter/test/cupertino/segmented_control_test.dart @@ -138,7 +138,7 @@ void main() { segmentedControlRect.topLeft.translate( effectivePadding.topLeft.dx, effectivePadding.topLeft.dy, - ) + ), ); expect( tester.getBottomLeft(find.byWidget(children[0])), diff --git a/packages/flutter/test/cupertino/switch_test.dart b/packages/flutter/test/cupertino/switch_test.dart index dcc2d6556fa..5ceb15696d3 100644 --- a/packages/flutter/test/cupertino/switch_test.dart +++ b/packages/flutter/test/cupertino/switch_test.dart @@ -425,7 +425,7 @@ void main() { dragStartBehavior: DragStartBehavior.down, onChanged: null, ), - ) + ), ), ); @@ -443,7 +443,7 @@ void main() { dragStartBehavior: DragStartBehavior.down, onChanged: (bool newValue) {}, ), - ) + ), ), ); @@ -461,7 +461,7 @@ void main() { dragStartBehavior: DragStartBehavior.down, onChanged: (bool newValue) {}, ), - ) + ), ), ); @@ -474,7 +474,7 @@ void main() { dragStartBehavior: DragStartBehavior.down, onChanged: null, ), - ) + ), ), ); @@ -492,7 +492,7 @@ void main() { dragStartBehavior: DragStartBehavior.down, onChanged: null, ), - ) + ), ), ); @@ -505,7 +505,7 @@ void main() { dragStartBehavior: DragStartBehavior.down, onChanged: (bool newValue) {}, ), - ) + ), ), ); diff --git a/packages/flutter/test/cupertino/tab_scaffold_test.dart b/packages/flutter/test/cupertino/tab_scaffold_test.dart index 52857772035..43c1ddb44d7 100644 --- a/packages/flutter/test/cupertino/tab_scaffold_test.dart +++ b/packages/flutter/test/cupertino/tab_scaffold_test.dart @@ -443,7 +443,7 @@ void main() { tabBuilder: (BuildContext context, int index) { return const Placeholder(); }, - ) + ), ); await tester.pumpWidget( @@ -452,7 +452,7 @@ void main() { data: const MediaQueryData( viewInsets: EdgeInsets.only(bottom: 20.0), ), - child: child + child: child, ), ), ); @@ -739,7 +739,7 @@ void main() { items: List.generate(3, tabGenerator), ), controller: controller, - tabBuilder: (BuildContext context, int index) => const Placeholder() + tabBuilder: (BuildContext context, int index) => const Placeholder(), ), ), ); @@ -756,7 +756,7 @@ void main() { items: List.generate(2, tabGenerator), ), controller: controller, - tabBuilder: (BuildContext context, int index) => const Placeholder() + tabBuilder: (BuildContext context, int index) => const Placeholder(), ), ), ); @@ -867,7 +867,7 @@ void main() { onPaint: () => tabsPainted0.add(index) ) ); - } + }, ), ] ) @@ -1041,7 +1041,7 @@ void main() { tabBar: CupertinoTabBar( items: List.generate( 10, - (int i) => BottomNavigationBarItem(icon: const ImageIcon(TestImageProvider(24, 23)), title: Text('$i')) + (int i) => BottomNavigationBarItem(icon: const ImageIcon(TestImageProvider(24, 23)), title: Text('$i')), ), ), tabBuilder: (BuildContext context, int index) => const Text('content'), diff --git a/packages/flutter/test/cupertino/text_field_test.dart b/packages/flutter/test/cupertino/text_field_test.dart index 732c3f0e0e5..04377c3676a 100644 --- a/packages/flutter/test/cupertino/text_field_test.dart +++ b/packages/flutter/test/cupertino/text_field_test.dart @@ -605,7 +605,7 @@ void main() { ), placeholderStyle: TextStyle( color: Color(0xAAFFFFFF), - fontWeight: FontWeight.w600 + fontWeight: FontWeight.w600, ), ), ), @@ -2741,7 +2741,7 @@ void main() { toolbarTopLeft = tester.getTopLeft(find.text('Paste')); textFieldTopLeft = tester.getTopLeft(find.byType(CupertinoTextField)); expect(toolbarTopLeft.dy, lessThan(textFieldTopLeft.dy)); - } + }, ); testWidgets('text field respects keyboardAppearance from theme', (WidgetTester tester) async { @@ -2927,7 +2927,7 @@ void main() { enabled: false, ), ) - ) + ), ) ) ); @@ -3035,7 +3035,7 @@ void main() { state = tester.state(find.byType(EditableText)); state.renderEditable.selectPositionAt( from: tester.getTopRight(find.byType(CupertinoApp)), - cause: SelectionChangedCause.tap + cause: SelectionChangedCause.tap, ); expect(state.showToolbar(), true); await tester.pumpAndSettle(); @@ -3096,7 +3096,7 @@ void main() { state = tester.state(find.byType(EditableText)); state.renderEditable.selectPositionAt( from: tester.getCenter(find.byType(EditableText)), - cause: SelectionChangedCause.tap + cause: SelectionChangedCause.tap, ); expect(state.showToolbar(), true); await tester.pumpAndSettle(); @@ -3167,7 +3167,7 @@ void main() { state.renderEditable.selectPositionAt( from: textOffsetToPosition(tester, 0), to: textOffsetToPosition(tester, 4), - cause: SelectionChangedCause.tap + cause: SelectionChangedCause.tap, ); expect(state.showToolbar(), true); await tester.pumpAndSettle(); @@ -3238,7 +3238,7 @@ void main() { state.renderEditable.selectPositionAt( from: textOffsetToPosition(tester, 0), to: textOffsetToPosition(tester, 10), - cause: SelectionChangedCause.tap + cause: SelectionChangedCause.tap, ); expect(state.showToolbar(), true); await tester.pumpAndSettle(); diff --git a/packages/flutter/test/foundation/assertions_test.dart b/packages/flutter/test/foundation/assertions_test.dart index 4b933ca9c89..72a50db0170 100644 --- a/packages/flutter/test/foundation/assertions_test.dart +++ b/packages/flutter/test/foundation/assertions_test.dart @@ -56,7 +56,7 @@ void main() { 'MESSAGE\n' '\n' 'INFO\n' - '═════════════════════════════════════════════════════════════════\n' + '═════════════════════════════════════════════════════════════════\n', ); expect( @@ -87,7 +87,7 @@ void main() { 'MESSAGE\n' '\n' 'INFO\n' - '═════════════════════════════════════════════════════════════════\n' + '═════════════════════════════════════════════════════════════════\n', ); expect( FlutterErrorDetails( @@ -111,14 +111,14 @@ void main() { '══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞══════════════════════\n' 'The following message was thrown:\n' 'MESSAGE\n' - '═════════════════════════════════════════════════════════════════\n' + '═════════════════════════════════════════════════════════════════\n', ); expect( const FlutterErrorDetails().toString(), '══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞══════════════════════\n' 'The following Null object was thrown:\n' ' null\n' - '═════════════════════════════════════════════════════════════════\n' + '═════════════════════════════════════════════════════════════════\n', ); }); @@ -154,7 +154,7 @@ void main() { 'FlutterError\n' ' My Error Summary.\n' ' My first description.\n' - ' My second description.\n' + ' My second description.\n', ); error = FlutterError( @@ -180,7 +180,7 @@ void main() { ' My first description.\n' ' My second description.\n' '\n' - '\n' + '\n', ); error = FlutterError( @@ -205,7 +205,7 @@ void main() { ' My Error Summary.\n' ' My first description.\n' '\n' - ' My second description.\n' + ' My second description.\n', ); error = FlutterError('My Error Summary.'); expect(error.diagnostics.length, 1); @@ -215,7 +215,7 @@ void main() { expect( error.toStringDeep(), 'FlutterError\n' - ' My Error Summary.\n' + ' My Error Summary.\n', ); }); diff --git a/packages/flutter/test/foundation/diagnostics_json_test.dart b/packages/flutter/test/foundation/diagnostics_json_test.dart index 2a2ab55b668..c2d9102640a 100644 --- a/packages/flutter/test/foundation/diagnostics_json_test.dart +++ b/packages/flutter/test/foundation/diagnostics_json_test.dart @@ -133,7 +133,7 @@ void main() { includeProperties: true, propertyFilter: (List nodes, DiagnosticsNode owner) { return nodes.whereType().toList(); - } + }, )); final List> properties = result['properties']; expect(properties, hasLength(3)); @@ -152,7 +152,7 @@ void main() { return [ StringProperty('foo', 'bar'), ]; - } + }, )); final List> properties = result['properties']; expect(properties, hasLength(1)); @@ -164,7 +164,7 @@ void main() { subtreeDepth: 1, childFilter: (List nodes, DiagnosticsNode owner) { return nodes.where((DiagnosticsNode node) => node.getProperties().isEmpty).toList(); - } + }, )); final List> children = result['children']; expect(children, hasLength(1)); @@ -175,7 +175,7 @@ void main() { subtreeDepth: 1, childFilter: (List nodes, DiagnosticsNode owner) { return nodes.expand((DiagnosticsNode node) => node.getChildren()).toList(); - } + }, )); final List> children = result['children']; expect(children, hasLength(3)); @@ -188,7 +188,7 @@ void main() { includeProperties: true, nodeTruncator: (List nodes, DiagnosticsNode owner) { return nodes.take(2).toList(); - } + }, )); final List> children = result['children']; expect(children, hasLength(3)); @@ -205,7 +205,7 @@ void main() { includeProperties: true, nodeDelegator: (DiagnosticsNode node, DiagnosticsSerializationDelegate delegate) { return delegate.copyWith(includeProperties: false); - } + }, )); final List> properties = result['properties']; expect(properties, hasLength(7)); diff --git a/packages/flutter/test/foundation/diagnostics_test.dart b/packages/flutter/test/foundation/diagnostics_test.dart index 496c998f27c..5b804310405 100644 --- a/packages/flutter/test/foundation/diagnostics_test.dart +++ b/packages/flutter/test/foundation/diagnostics_test.dart @@ -1861,7 +1861,7 @@ void main() { '#0 someMethod() file:///diagnostics_test.dart:42:19\n' '#1 someMethod2() file:///diagnostics_test.dart:12:3\n' '#2 someMethod3() file:///foo.dart:4:1\n' - ) + ), ); expect( @@ -1871,7 +1871,7 @@ void main() { '#0 someMethod() file:///diagnostics_test.dart:42:19\n' '#1 someMethod2() file:///diagnostics_test.dart:12:3\n' '#2 someMethod3() file:///foo.dart:4:1\n' - ) + ), ); }); @@ -2059,7 +2059,7 @@ void main() { 'diagnosis: insufficient data to draw\n' ' conclusion (less than five repaints)\n' '════════════════════════════════════════\n', - ) + ), ); // This output looks ugly but verifies that no indentation on word wrap @@ -2132,7 +2132,7 @@ void main() { ' --- example property at max length --\n' ' diagnosis: insufficient data to draw\n' ' conclusion (less than five repaints)\n' - ) + ), ); // This case matches the styles that should generally be used for error @@ -2207,7 +2207,7 @@ void main() { ' insufficient data to draw conclusion\n' ' (less than five repaints)\n' '════════════════════════════════════════\n' - ) + ), ); }); diff --git a/packages/flutter/test/foundation/error_reporting_test.dart b/packages/flutter/test/foundation/error_reporting_test.dart index 086ecb60b0a..c7c4cc783b3 100644 --- a/packages/flutter/test/foundation/error_reporting_test.dart +++ b/packages/flutter/test/foundation/error_reporting_test.dart @@ -146,7 +146,7 @@ Future main() async { informationCollector: () sync* { yield ErrorDescription('line 1 of extra information'); yield ErrorDescription('line 2 of extra information\n'); // the trailing newlines here are intentional - } + }, )); expect(console.join('\n'), matches( '^══╡ EXCEPTION CAUGHT BY ERROR HANDLING TEST ╞═══════════════════════════════════════════════════════\n' diff --git a/packages/flutter/test/foundation/service_extensions_test.dart b/packages/flutter/test/foundation/service_extensions_test.dart index 1f24adae25f..beed10f2529 100644 --- a/packages/flutter/test/foundation/service_extensions_test.dart +++ b/packages/flutter/test/foundation/service_extensions_test.dart @@ -214,7 +214,7 @@ void main() { Map result; binding.testExtension( 'debugCheckElevationsEnabled', - {'enabled': '$newValue'} + {'enabled': '$newValue'}, ).then((Map answer) => result = answer); await binding.flushMicrotasks(); expect(binding.frameScheduled, lastValue != newValue); diff --git a/packages/flutter/test/gestures/transformed_double_tap.dart b/packages/flutter/test/gestures/transformed_double_tap.dart index 8da9be21dd0..f9423b4b876 100644 --- a/packages/flutter/test/gestures/transformed_double_tap.dart +++ b/packages/flutter/test/gestures/transformed_double_tap.dart @@ -25,7 +25,7 @@ void main() { width: 100, height: 150, color: Colors.red, - ) + ), ), ), ) @@ -69,7 +69,7 @@ void main() { width: 500, height: 500, color: Colors.red, - ) + ), ), ), ) diff --git a/packages/flutter/test/gestures/transformed_long_press_test.dart b/packages/flutter/test/gestures/transformed_long_press_test.dart index b2f38167234..a7b2a22f287 100644 --- a/packages/flutter/test/gestures/transformed_long_press_test.dart +++ b/packages/flutter/test/gestures/transformed_long_press_test.dart @@ -39,7 +39,7 @@ void main() { width: 100, height: 150, color: Colors.red, - ) + ), ), ) ); @@ -87,7 +87,7 @@ void main() { width: 100, height: 150, color: Colors.red, - ) + ), ), ), ) @@ -162,7 +162,7 @@ void main() { width: 100, height: 150, color: Colors.red, - ) + ), ), ), ) diff --git a/packages/flutter/test/gestures/transformed_tap_test.dart b/packages/flutter/test/gestures/transformed_tap_test.dart index 6b1ab3b4196..b6163e6f913 100644 --- a/packages/flutter/test/gestures/transformed_tap_test.dart +++ b/packages/flutter/test/gestures/transformed_tap_test.dart @@ -35,7 +35,7 @@ void main() { width: 100, height: 150, color: Colors.red, - ) + ), ), ) ); @@ -78,7 +78,7 @@ void main() { width: 100, height: 150, color: Colors.red, - ) + ), ), ), ) @@ -141,7 +141,7 @@ void main() { width: 100, height: 150, color: Colors.red, - ) + ), ), ), ) diff --git a/packages/flutter/test/material/banner_theme_test.dart b/packages/flutter/test/material/banner_theme_test.dart index d2dc5bae2b3..7b1db85e18e 100644 --- a/packages/flutter/test/material/banner_theme_test.dart +++ b/packages/flutter/test/material/banner_theme_test.dart @@ -187,4 +187,4 @@ RenderParagraph _getTextRenderObjectFromDialog(WidgetTester tester, String text) Finder _textFinder(String text) { return find.descendant(of: find.byType(MaterialBanner), matching: find.text(text)); -} \ No newline at end of file +} diff --git a/packages/flutter/test/material/bottom_navigation_bar_test.dart b/packages/flutter/test/material/bottom_navigation_bar_test.dart index 963e4571ef5..7142e8cd0ac 100644 --- a/packages/flutter/test/material/bottom_navigation_bar_test.dart +++ b/packages/flutter/test/material/bottom_navigation_bar_test.dart @@ -1677,7 +1677,7 @@ EdgeInsets _itemPadding(WidgetTester tester, IconData icon) { return tester.widget( find.descendant( of: find.ancestor(of: find.byIcon(icon), matching: find.byType(InkResponse)), - matching: find.byType(Padding) + matching: find.byType(Padding), ).first, ).padding.resolve(TextDirection.ltr); } diff --git a/packages/flutter/test/material/bottom_sheet_test.dart b/packages/flutter/test/material/bottom_sheet_test.dart index 262d28a27a2..2339698290b 100644 --- a/packages/flutter/test/material/bottom_sheet_test.dart +++ b/packages/flutter/test/material/bottom_sheet_test.dart @@ -309,7 +309,7 @@ void main() { await tester.pumpWidget(MaterialApp( home: Scaffold( key: scaffoldKey, - body: const Center(child: Text('body')) + body: const Center(child: Text('body')), ) )); @@ -380,7 +380,7 @@ void main() { BottomNavigationBarItem( icon: Icon(Icons.style), title: Text('Item 2'), - ) + ), ], ), ), @@ -409,7 +409,7 @@ void main() { BottomNavigationBarItem( icon: Icon(Icons.style), title: Text('Item 2'), - ) + ), ], ), ), @@ -447,7 +447,7 @@ class _TestPage extends StatelessWidget { builder: (_) => const Text('Modal bottom sheet'), ); } - } + }, ), ); } diff --git a/packages/flutter/test/material/bottom_sheet_theme_test.dart b/packages/flutter/test/material/bottom_sheet_theme_test.dart index 0553d44f8a1..e3566ce2ac0 100644 --- a/packages/flutter/test/material/bottom_sheet_theme_test.dart +++ b/packages/flutter/test/material/bottom_sheet_theme_test.dart @@ -50,7 +50,7 @@ void main() { 'backgroundColor: Color(0xffffffff)', 'elevation: 2.0', 'shape: RoundedRectangleBorder(BorderSide(Color(0xff000000), 0.0, BorderStyle.none), BorderRadius.circular(2.0))', - 'clipBehavior: Clip.antiAlias' + 'clipBehavior: Clip.antiAlias', ]); }); diff --git a/packages/flutter/test/material/button_bar_theme_test.dart b/packages/flutter/test/material/button_bar_theme_test.dart index d14da3a4c0d..89ed0225764 100644 --- a/packages/flutter/test/material/button_bar_theme_test.dart +++ b/packages/flutter/test/material/button_bar_theme_test.dart @@ -115,7 +115,7 @@ void main() { capturedContext = context; return Container(); } - ) + ), ) ); expect(ButtonBarTheme.of(capturedContext), equals(buttonBarTheme)); @@ -141,7 +141,7 @@ void main() { ), ); } - ) + ), ) ); expect(ButtonBarTheme.of(capturedContext), equals(buttonBarTheme)); diff --git a/packages/flutter/test/material/chip_test.dart b/packages/flutter/test/material/chip_test.dart index d50c971a498..6429842b0ee 100644 --- a/packages/flutter/test/material/chip_test.dart +++ b/packages/flutter/test/material/chip_test.dart @@ -170,7 +170,7 @@ Future _pumpCheckmarkChip( child: chip, ); }, - ) + ), ) ); } diff --git a/packages/flutter/test/material/color_scheme_test.dart b/packages/flutter/test/material/color_scheme_test.dart index d6c74a9c2b7..e74efc77248 100644 --- a/packages/flutter/test/material/color_scheme_test.dart +++ b/packages/flutter/test/material/color_scheme_test.dart @@ -6,7 +6,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { - test('light scheme matches the spec', () { // Colors should match the The Material Design baseline default theme: // https://material.io/design/color/dark-theme.html#ui-application @@ -44,5 +43,4 @@ void main() { expect(scheme.onError, const Color(0xff000000)); expect(scheme.brightness, Brightness.dark); }); - -} \ No newline at end of file +} diff --git a/packages/flutter/test/material/expansion_panel_test.dart b/packages/flutter/test/material/expansion_panel_test.dart index 10efb550736..5f87d73e3e1 100644 --- a/packages/flutter/test/material/expansion_panel_test.dart +++ b/packages/flutter/test/material/expansion_panel_test.dart @@ -10,7 +10,7 @@ class SimpleExpansionPanelListTestWidget extends StatefulWidget { Key key, this.firstPanelKey, this.secondPanelKey, - this.canTapOnHeader = false + this.canTapOnHeader = false, }) : super(key: key); final Key firstPanelKey; diff --git a/packages/flutter/test/material/ink_well_test.dart b/packages/flutter/test/material/ink_well_test.dart index 73a45438738..9b4a8f93b47 100644 --- a/packages/flutter/test/material/ink_well_test.dart +++ b/packages/flutter/test/material/ink_well_test.dart @@ -105,7 +105,7 @@ void main() { highlightColor: const Color(0xf00fffff), onTap: () {}, onLongPress: () {}, - onHover: (bool hover) {} + onHover: (bool hover) {}, ), ), ), @@ -139,7 +139,7 @@ void main() { highlightColor: const Color(0xf00fffff), onTap: () {}, onLongPress: () {}, - onHover: (bool hover) {} + onHover: (bool hover) {}, ), ), ), @@ -174,7 +174,7 @@ void main() { highlightColor: const Color(0xf00fffff), onTap: () {}, onLongPress: () {}, - onHover: (bool hover) {} + onHover: (bool hover) {}, ), ), ), diff --git a/packages/flutter/test/material/input_decorator_test.dart b/packages/flutter/test/material/input_decorator_test.dart index f18d1ddce3e..6d8aaf65183 100644 --- a/packages/flutter/test/material/input_decorator_test.dart +++ b/packages/flutter/test/material/input_decorator_test.dart @@ -3289,7 +3289,7 @@ void main() { Offset(inputDecoratorWidth - smallerBorderRadiusScaled, 0.0), ], ) - ..restore() + ..restore(), ); }); diff --git a/packages/flutter/test/material/material_test.dart b/packages/flutter/test/material/material_test.dart index 2cc7f826e1c..61891118c5d 100644 --- a/packages/flutter/test/material/material_test.dart +++ b/packages/flutter/test/material/material_test.dart @@ -276,7 +276,7 @@ void main() { ), child: buildMaterial( color: Colors.cyan, - elevation: 8.0 + elevation: 8.0, ), ) ); diff --git a/packages/flutter/test/material/persistent_bottom_sheet_test.dart b/packages/flutter/test/material/persistent_bottom_sheet_test.dart index bf22709fdd0..297aa7c55bc 100644 --- a/packages/flutter/test/material/persistent_bottom_sheet_test.dart +++ b/packages/flutter/test/material/persistent_bottom_sheet_test.dart @@ -103,7 +103,7 @@ void main() { await tester.pumpWidget(MaterialApp( home: Scaffold( key: scaffoldKey, - body: const Center(child: Text('body')) + body: const Center(child: Text('body')), ) )); @@ -466,7 +466,7 @@ void main() { await tester.pumpWidget(MaterialApp( home: Scaffold( key: scaffoldKey, - body: const Center(child: Text('body')) + body: const Center(child: Text('body')), ) )); diff --git a/packages/flutter/test/material/popup_menu_test.dart b/packages/flutter/test/material/popup_menu_test.dart index f654af6dd35..3e6826405dc 100644 --- a/packages/flutter/test/material/popup_menu_test.dart +++ b/packages/flutter/test/material/popup_menu_test.dart @@ -672,7 +672,7 @@ void main() { context: context, items: >[ const PopupMenuItem( - value: 1, child: Text('1') + value: 1, child: Text('1'), ), ], ); diff --git a/packages/flutter/test/material/popup_menu_theme_test.dart b/packages/flutter/test/material/popup_menu_theme_test.dart index eb7fd706054..d58f851bb69 100644 --- a/packages/flutter/test/material/popup_menu_theme_test.dart +++ b/packages/flutter/test/material/popup_menu_theme_test.dart @@ -61,7 +61,7 @@ void main() { 'color: Color(0xffffffff)', 'shape: RoundedRectangleBorder(BorderSide(Color(0xff000000), 0.0, BorderStyle.none), BorderRadius.circular(2.0))', 'elevation: 2.0', - 'text style: TextStyle(inherit: true, color: Color(0xffffffff))' + 'text style: TextStyle(inherit: true, color: Color(0xffffffff))', ]); }); diff --git a/packages/flutter/test/material/range_slider_test.dart b/packages/flutter/test/material/range_slider_test.dart index cb84ed6e9bf..f6d5424c0d6 100644 --- a/packages/flutter/test/material/range_slider_test.dart +++ b/packages/flutter/test/material/range_slider_test.dart @@ -985,7 +985,7 @@ void main() { overlayColor: Color(0xff000010), thumbColor: Color(0xff000011), valueIndicatorColor: Color(0xff000012), - ) + ), ); } @@ -1293,7 +1293,7 @@ void main() { sliderBox, paints ..path(color: sliderTheme.valueIndicatorColor) - ..path(color: sliderTheme.valueIndicatorColor) + ..path(color: sliderTheme.valueIndicatorColor), ); await gesture.up(); // Wait for value indicator animation to finish. @@ -1313,7 +1313,7 @@ void main() { sliderBox, paints ..path(color: customColor1) - ..path(color: customColor1) + ..path(color: customColor1), ); await gesture.up(); }); @@ -1326,8 +1326,8 @@ void main() { primarySwatch: Colors.blue, sliderTheme: const SliderThemeData( thumbColor: Color(0xff000001), - overlappingShapeStrokeColor: Color(0xff000002) - ) + overlappingShapeStrokeColor: Color(0xff000002), + ), ); final SliderThemeData sliderTheme = theme.sliderTheme; @@ -1382,7 +1382,7 @@ void main() { paints ..circle(color: sliderTheme.thumbColor) ..circle(color: sliderTheme.overlappingShapeStrokeColor) - ..circle(color: sliderTheme.thumbColor) + ..circle(color: sliderTheme.thumbColor), ); }); @@ -1396,7 +1396,7 @@ void main() { valueIndicatorColor: Color(0xff000001), overlappingShapeStrokeColor: Color(0xff000002), showValueIndicator: ShowValueIndicator.always, - ) + ), ); final SliderThemeData sliderTheme = theme.sliderTheme; @@ -1454,7 +1454,7 @@ void main() { paints ..path(color: sliderTheme.valueIndicatorColor) ..path(color: sliderTheme.overlappingShapeStrokeColor) - ..path(color: sliderTheme.valueIndicatorColor) + ..path(color: sliderTheme.valueIndicatorColor), ); await gesture.up(); @@ -1470,7 +1470,7 @@ void main() { valueIndicatorColor: Color(0xff000001), overlappingShapeStrokeColor: Color(0xff000002), showValueIndicator: ShowValueIndicator.always, - ) + ), ); final SliderThemeData sliderTheme = theme.sliderTheme; diff --git a/packages/flutter/test/material/scaffold_test.dart b/packages/flutter/test/material/scaffold_test.dart index dcd85dbd6a6..18c52b6fbb6 100644 --- a/packages/flutter/test/material/scaffold_test.dart +++ b/packages/flutter/test/material/scaffold_test.dart @@ -1133,7 +1133,7 @@ void main() { BottomNavigationBarItem( icon: Icon(Icons.add), title: Text('test'), - ) + ), ] ), ), diff --git a/packages/flutter/test/material/scrollbar_paint_test.dart b/packages/flutter/test/material/scrollbar_paint_test.dart index c2bf5254468..bb35bca173d 100644 --- a/packages/flutter/test/material/scrollbar_paint_test.dart +++ b/packages/flutter/test/material/scrollbar_paint_test.dart @@ -10,8 +10,8 @@ import '../rendering/mock_canvas.dart'; Widget _buildSingleChildScrollViewWithScrollbar({ TextDirection textDirection = TextDirection.ltr, EdgeInsets padding = EdgeInsets.zero, - Widget child} -) { + Widget child, +}) { return Directionality( textDirection: textDirection, child: MediaQuery( diff --git a/packages/flutter/test/material/scrollbar_test.dart b/packages/flutter/test/material/scrollbar_test.dart index e523865da4f..017b85f78cf 100644 --- a/packages/flutter/test/material/scrollbar_test.dart +++ b/packages/flutter/test/material/scrollbar_test.dart @@ -22,7 +22,7 @@ class TestCanvas implements Canvas { Widget _buildBoilerplate({ TextDirection textDirection = TextDirection.ltr, EdgeInsets padding = EdgeInsets.zero, - Widget child + Widget child, }) { return Directionality( textDirection: textDirection, diff --git a/packages/flutter/test/material/slider_test.dart b/packages/flutter/test/material/slider_test.dart index 37ed4ced319..637d06699f2 100644 --- a/packages/flutter/test/material/slider_test.dart +++ b/packages/flutter/test/material/slider_test.dart @@ -582,7 +582,7 @@ void main() { overlayColor: Color(0xff000010), thumbColor: Color(0xff000011), valueIndicatorColor: Color(0xff000012), - ) + ), ); final SliderThemeData sliderTheme = theme.sliderTheme; double value = 0.45; diff --git a/packages/flutter/test/material/slider_theme_test.dart b/packages/flutter/test/material/slider_theme_test.dart index cbc900cecce..c5c756e4631 100644 --- a/packages/flutter/test/material/slider_theme_test.dart +++ b/packages/flutter/test/material/slider_theme_test.dart @@ -90,7 +90,7 @@ void main() { 'rangeTrackShape: Instance of \'RoundedRectRangeSliderTrackShape\'', 'rangeValueIndicatorShape: Instance of \'PaddleRangeSliderValueIndicatorShape\'', 'showValueIndicator: always', - 'valueIndicatorTextStyle: TextStyle(inherit: true, color: Color(0xff000000))' + 'valueIndicatorTextStyle: TextStyle(inherit: true, color: Color(0xff000000))', ]); }); @@ -528,8 +528,7 @@ void main() { ), ); await gesture.up(); - }, skip: isBrowser - ); + }, skip: isBrowser); testWidgets('The slider track height can be overridden', (WidgetTester tester) async { final SliderThemeData sliderTheme = ThemeData().sliderTheme.copyWith(trackHeight: 16); diff --git a/packages/flutter/test/material/snack_bar_test.dart b/packages/flutter/test/material/snack_bar_test.dart index f49dccc4278..0e5c1a32e15 100644 --- a/packages/flutter/test/material/snack_bar_test.dart +++ b/packages/flutter/test/material/snack_bar_test.dart @@ -537,7 +537,7 @@ void main() { child: Scaffold( floatingActionButton: FloatingActionButton( child: const Icon(Icons.send), - onPressed: () {} + onPressed: () {}, ), body: Builder( builder: (BuildContext context) { @@ -693,7 +693,7 @@ void main() { child: Scaffold( floatingActionButton: FloatingActionButton( child: const Icon(Icons.send), - onPressed: () {} + onPressed: () {}, ), body: Builder( builder: (BuildContext context) { @@ -731,7 +731,7 @@ void main() { resizeToAvoidBottomInset: false, floatingActionButton: FloatingActionButton( child: const Icon(Icons.send), - onPressed: () {} + onPressed: () {}, ), body: Builder( builder: (BuildContext context) { @@ -756,7 +756,7 @@ void main() { data: const MediaQueryData( padding: EdgeInsets.only(bottom: 20.0), ), - child: child + child: child, ) ); await tester.tap(find.text('X')); diff --git a/packages/flutter/test/material/snack_bar_theme_test.dart b/packages/flutter/test/material/snack_bar_theme_test.dart index 4f6f37fc257..83639d4b3a1 100644 --- a/packages/flutter/test/material/snack_bar_theme_test.dart +++ b/packages/flutter/test/material/snack_bar_theme_test.dart @@ -59,7 +59,7 @@ void main() { 'contentTextStyle: TextStyle(inherit: true, color: Color(0xff123456))', 'elevation: 2.0', 'shape: RoundedRectangleBorder(BorderSide(Color(0xff000000), 0.0, BorderStyle.none), BorderRadius.circular(2.0))', - 'behavior: SnackBarBehavior.floating' + 'behavior: SnackBarBehavior.floating', ]); }); diff --git a/packages/flutter/test/material/stepper_test.dart b/packages/flutter/test/material/stepper_test.dart index 7b8368e258c..1df4cce3598 100644 --- a/packages/flutter/test/material/stepper_test.dart +++ b/packages/flutter/test/material/stepper_test.dart @@ -506,7 +506,7 @@ void main() { content: Text('A'), ), ], - ) + ), ), const Step( title: Text('Step 1'), diff --git a/packages/flutter/test/material/tabs_test.dart b/packages/flutter/test/material/tabs_test.dart index dac63b7c685..40c605684f5 100644 --- a/packages/flutter/test/material/tabs_test.dart +++ b/packages/flutter/test/material/tabs_test.dart @@ -96,7 +96,7 @@ class _NestedTabBarContainer extends StatelessWidget { Container(color: Colors.grey), ], ), - ) + ), ], ), ); diff --git a/packages/flutter/test/material/text_field_test.dart b/packages/flutter/test/material/text_field_test.dart index bde7686f701..59ac895b2fb 100644 --- a/packages/flutter/test/material/text_field_test.dart +++ b/packages/flutter/test/material/text_field_test.dart @@ -978,8 +978,9 @@ void main() { // Update selection from [0 to 8] to [1 to 7]. controller = TextEditingController.fromValue( controller.value.copyWith(selection: const TextSelection( - baseOffset: 1, extentOffset: 7 - )) + baseOffset: 1, + extentOffset: 7, + )), ); // Mark entry to be dirty in order to trigger overlay update. @@ -995,7 +996,7 @@ void main() { final TextEditingController controller = TextEditingController.fromValue( const TextEditingValue( text: 'readonly', - composing: TextRange(start: 0, end: 8) // Simulate text composing. + composing: TextRange(start: 0, end: 8), // Simulate text composing. ) ); @@ -3447,7 +3448,7 @@ void main() { expect( semantics, - includesNodeWith(flags: [SemanticsFlag.isTextField, SemanticsFlag.isReadOnly]) + includesNodeWith(flags: [SemanticsFlag.isTextField, SemanticsFlag.isReadOnly]), ); semantics.dispose(); @@ -3606,7 +3607,7 @@ void main() { tester.testTextInput.updateEditingValue(const TextEditingValue( text: testValue, selection: TextSelection.collapsed(offset: 3), - composing: TextRange(start: 0, end: testValue.length) + composing: TextRange(start: 0, end: testValue.length), )); await tester.pump(); diff --git a/packages/flutter/test/material/theme_test.dart b/packages/flutter/test/material/theme_test.dart index f3d90e47a12..fd9da80ed4f 100644 --- a/packages/flutter/test/material/theme_test.dart +++ b/packages/flutter/test/material/theme_test.dart @@ -514,7 +514,7 @@ void main() { await testTheme(tester, ThemeData( iconTheme: const IconThemeData(color: materialIconColor), - cupertinoOverrideTheme: const CupertinoThemeData(primaryColor: cupertinoIconColor) + cupertinoOverrideTheme: const CupertinoThemeData(primaryColor: cupertinoIconColor), )); expect(buildCount, 1); diff --git a/packages/flutter/test/material/toggle_buttons_test.dart b/packages/flutter/test/material/toggle_buttons_test.dart index 14a8fb4e33b..1362f14b356 100644 --- a/packages/flutter/test/material/toggle_buttons_test.dart +++ b/packages/flutter/test/material/toggle_buttons_test.dart @@ -873,7 +873,7 @@ void main() { expect( inkFeatures, paints - ..circle(color: splashColor) + ..circle(color: splashColor), ); await touchGesture.up(); diff --git a/packages/flutter/test/material/tooltip_theme_test.dart b/packages/flutter/test/material/tooltip_theme_test.dart index 9825afdef71..ea09f04783f 100644 --- a/packages/flutter/test/material/tooltip_theme_test.dart +++ b/packages/flutter/test/material/tooltip_theme_test.dart @@ -89,7 +89,7 @@ void main() { 'decoration: BoxDecoration(color: Color(0xffffffff))', 'textStyle: TextStyle(inherit: true, decoration: TextDecoration.underline)', 'wait duration: 0:00:00.100000', - 'show duration: 0:00:00.200000' + 'show duration: 0:00:00.200000', ]); }); @@ -588,7 +588,7 @@ void main() { tooltipTheme: const TooltipThemeData( textStyle: TextStyle( color: Colors.orange, - decoration: TextDecoration.underline + decoration: TextDecoration.underline, ), ), ), @@ -619,7 +619,7 @@ void main() { child: Tooltip( textStyle: const TextStyle( color: Colors.orange, - decoration: TextDecoration.underline + decoration: TextDecoration.underline, ), key: key, message: tooltipText, diff --git a/packages/flutter/test/painting/image_provider_test.dart b/packages/flutter/test/painting/image_provider_test.dart index 76b12e012c2..64ca2b255c1 100644 --- a/packages/flutter/test/painting/image_provider_test.dart +++ b/packages/flutter/test/painting/image_provider_test.dart @@ -175,9 +175,11 @@ void main() { })); final dynamic err = await caughtError.future; - expect(err, const TypeMatcher() + expect( + err, + const TypeMatcher() .having((NetworkImageLoadException e) => e.statusCode, 'statusCode', errorStatusCode) - .having((NetworkImageLoadException e) => e.uri, 'uri', Uri.base.resolve(requestUrl)) + .having((NetworkImageLoadException e) => e.uri, 'uri', Uri.base.resolve(requestUrl)), ); }); diff --git a/packages/flutter/test/painting/text_painter_test.dart b/packages/flutter/test/painting/text_painter_test.dart index 4a2786551fb..9175d80dd87 100644 --- a/packages/flutter/test/painting/text_painter_test.dart +++ b/packages/flutter/test/painting/text_painter_test.dart @@ -660,7 +660,7 @@ void main() { WidgetSpan(child: SizedBox(width: 50, height: 30)), WidgetSpan(child: SizedBox(width: 50, height: 30)), WidgetSpan(child: SizedBox(width: 50, height: 30)), - ] + ], ); // We provide dimensions for the widgets diff --git a/packages/flutter/test/painting/text_span_test.dart b/packages/flutter/test/painting/text_span_test.dart index 2f7e9757c92..17dabd6acb1 100644 --- a/packages/flutter/test/painting/text_span_test.dart +++ b/packages/flutter/test/painting/text_span_test.dart @@ -178,7 +178,7 @@ void main() { TextSpan( children: [ WidgetSpan(child: SizedBox(width: 10, height: 10)), - TextSpan(text: 'The sky is falling :)') + TextSpan(text: 'The sky is falling :)'), ], ) ), @@ -196,7 +196,7 @@ void main() { TextSpan( children: [ WidgetSpan(child: SizedBox(width: 10, height: 11)), - TextSpan(text: 'The sky is falling :)') + TextSpan(text: 'The sky is falling :)'), ], ) ), diff --git a/packages/flutter/test/rendering/box_test.dart b/packages/flutter/test/rendering/box_test.dart index 5a4626e1de9..8666cf166c4 100644 --- a/packages/flutter/test/rendering/box_test.dart +++ b/packages/flutter/test/rendering/box_test.dart @@ -64,13 +64,13 @@ void main() { ' RenderBox subclasses need to either override performLayout() to\n' ' set a size and lay out any children, or, set sizedByParent to\n' ' true so that performResize() sizes the render object.\n' - ) + ), ); expect( result.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), 'RenderBox subclasses need to either override performLayout() to set a ' 'size and lay out any children, or, set sizedByParent to true so that ' - 'performResize() sizes the render object.' + 'performResize() sizes the render object.', ); }); @@ -128,7 +128,7 @@ void main() { 'parentData field. Since RenderPadding does not in fact use that ' 'ParentData class for its children, it must provide an implementation ' 'of applyPaintTransform that supports the specific ParentData subclass ' - 'used by its children (which apparently is ParentData).' + 'used by its children (which apparently is ParentData).', ); }); @@ -160,7 +160,7 @@ void main() { ' object).\n' ' Because this RenderBox has sizedByParent set to false, it must\n' ' set its size in performLayout().\n' - ) + ), ); expect(result.diagnostics.where((DiagnosticsNode node) => node.level == DiagnosticLevel.hint), isEmpty); } @@ -201,7 +201,7 @@ void main() { ' to be notified when the size changes and therefore attempts to\n' ' read that size are almost certainly a source of bugs. A different\n' ' approach should be used.\n' - ) + ), ); expect(result.diagnostics.where((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).length, 2); } @@ -404,7 +404,7 @@ void main() { ); expect( result.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), - 'If you do not have a specific height in mind, then pass double.infinity instead.' + 'If you do not have a specific height in mind, then pass double.infinity instead.', ); } @@ -432,7 +432,7 @@ void main() { result.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), 'If you perform computations on another height before passing it to ' 'getMinIntrinsicWidth, consider using math.max() or double.clamp() ' - 'to force the value into the valid range.' + 'to force the value into the valid range.', ); } @@ -457,7 +457,7 @@ void main() { ); expect( result.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), - 'If you do not have a specific width in mind, then pass double.infinity instead.' + 'If you do not have a specific width in mind, then pass double.infinity instead.', ); } @@ -485,7 +485,7 @@ void main() { result.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), 'If you perform computations on another width before passing it to ' 'getMinIntrinsicHeight, consider using math.max() or double.clamp() ' - 'to force the value into the valid range.' + 'to force the value into the valid range.', ); } @@ -510,7 +510,7 @@ void main() { ); expect( result.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), - 'If you do not have a specific height in mind, then pass double.infinity instead.' + 'If you do not have a specific height in mind, then pass double.infinity instead.', ); } @@ -538,7 +538,7 @@ void main() { result.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), 'If you perform computations on another height before passing it to ' 'getMaxIntrinsicWidth, consider using math.max() or double.clamp() ' - 'to force the value into the valid range.' + 'to force the value into the valid range.', ); } @@ -563,7 +563,7 @@ void main() { ); expect( result.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), - 'If you do not have a specific width in mind, then pass double.infinity instead.' + 'If you do not have a specific width in mind, then pass double.infinity instead.', ); } @@ -591,7 +591,7 @@ void main() { result.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), 'If you perform computations on another width before passing it to ' 'getMaxIntrinsicHeight, consider using math.max() or double.clamp() ' - 'to force the value into the valid range.' + 'to force the value into the valid range.', ); } }); @@ -955,7 +955,7 @@ void main() { 'If you are trying to perform a hit test during the layout phase ' 'itself, make sure you only hit test nodes that have completed ' 'layout (e.g. the node\'s children, after their layout() method has ' - 'been called).' + 'been called).', ); } @@ -991,7 +991,7 @@ void main() { result.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), 'A RenderBox object must have an explicit size before it can be ' 'hit-tested. Make sure that the RenderBox in question sets its ' - 'size during layout.' + 'size during layout.', ); } }); diff --git a/packages/flutter/test/rendering/debug_test.dart b/packages/flutter/test/rendering/debug_test.dart index 7524a27a10f..7d915147155 100644 --- a/packages/flutter/test/rendering/debug_test.dart +++ b/packages/flutter/test/rendering/debug_test.dart @@ -149,7 +149,7 @@ void main() { s.debugPaint( PaintingContext( ContainerLayer(), const Rect.fromLTRB(0.0, 0.0, 800.0, 600.0)), - const Offset(0.0, 500) + const Offset(0.0, 500), ); } catch(e) { error = e; @@ -182,7 +182,7 @@ void main() { s.debugPaint( PaintingContext( ContainerLayer(), const Rect.fromLTRB(0.0, 0.0, 800.0, 600.0)), - const Offset(0.0, 500) + const Offset(0.0, 500), ); } catch(e) { error = e; diff --git a/packages/flutter/test/rendering/mock_canvas.dart b/packages/flutter/test/rendering/mock_canvas.dart index af1b94b7d2f..288ad6e9b65 100644 --- a/packages/flutter/test/rendering/mock_canvas.dart +++ b/packages/flutter/test/rendering/mock_canvas.dart @@ -1042,7 +1042,7 @@ class _RRectPaintPredicate extends _DrawCommandPaintPredicate { color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, - style: style + style: style, ); final RRect rrect; @@ -1093,7 +1093,7 @@ class _DRRectPaintPredicate extends _TwoParameterPaintPredicate { class _CirclePaintPredicate extends _DrawCommandPaintPredicate { _CirclePaintPredicate({ this.x, this.y, this.radius, Color color, double strokeWidth, bool hasMaskFilter, PaintingStyle style }) : super( - #drawCircle, 'a circle', 3, 2, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style + #drawCircle, 'a circle', 3, 2, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style, ); final double x; @@ -1137,7 +1137,7 @@ class _CirclePaintPredicate extends _DrawCommandPaintPredicate { class _PathPaintPredicate extends _DrawCommandPaintPredicate { _PathPaintPredicate({ this.includes, this.excludes, Color color, double strokeWidth, bool hasMaskFilter, PaintingStyle style }) : super( - #drawPath, 'a path', 2, 1, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style + #drawPath, 'a path', 2, 1, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style, ); final Iterable includes; @@ -1177,7 +1177,7 @@ class _PathPaintPredicate extends _DrawCommandPaintPredicate { // TODO(ianh): add arguments to test the length, angle, that kind of thing class _LinePaintPredicate extends _DrawCommandPaintPredicate { _LinePaintPredicate({ this.p1, this.p2, Color color, double strokeWidth, bool hasMaskFilter, PaintingStyle style }) : super( - #drawLine, 'a line', 3, 2, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style + #drawLine, 'a line', 3, 2, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style, ); final Offset p1; @@ -1210,7 +1210,7 @@ class _LinePaintPredicate extends _DrawCommandPaintPredicate { class _ArcPaintPredicate extends _DrawCommandPaintPredicate { _ArcPaintPredicate({ Color color, double strokeWidth, bool hasMaskFilter, PaintingStyle style }) : super( - #drawArc, 'an arc', 5, 4, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style + #drawArc, 'an arc', 5, 4, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style, ); } @@ -1291,7 +1291,7 @@ class _ShadowPredicate extends _PaintPredicate { class _DrawImagePaintPredicate extends _DrawCommandPaintPredicate { _DrawImagePaintPredicate({ this.image, this.x, this.y, Color color, double strokeWidth, bool hasMaskFilter, PaintingStyle style }) : super( - #drawImage, 'an image', 3, 2, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style + #drawImage, 'an image', 3, 2, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style, ); final ui.Image image; @@ -1335,7 +1335,7 @@ class _DrawImagePaintPredicate extends _DrawCommandPaintPredicate { class _DrawImageRectPaintPredicate extends _DrawCommandPaintPredicate { _DrawImageRectPaintPredicate({ this.image, this.source, this.destination, Color color, double strokeWidth, bool hasMaskFilter, PaintingStyle style }) : super( - #drawImageRect, 'an image', 4, 3, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style + #drawImageRect, 'an image', 4, 3, color: color, strokeWidth: strokeWidth, hasMaskFilter: hasMaskFilter, style: style, ); final ui.Image image; diff --git a/packages/flutter/test/rendering/object_test.dart b/packages/flutter/test/rendering/object_test.dart index fcc868ce73e..90b14e746be 100644 --- a/packages/flutter/test/rendering/object_test.dart +++ b/packages/flutter/test/rendering/object_test.dart @@ -66,7 +66,7 @@ void main() { '══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞══════════════════════\n' 'The following assertion was thrown during performLayout():\n' 'TestThrowingRenderObject does not support performLayout.\n' - ) + ), ); expect( diff --git a/packages/flutter/test/rendering/paint_error_test.dart b/packages/flutter/test/rendering/paint_error_test.dart index c1b646cd888..fa4c338fd68 100644 --- a/packages/flutter/test/rendering/paint_error_test.dart +++ b/packages/flutter/test/rendering/paint_error_test.dart @@ -98,7 +98,7 @@ void main() { ); expect( flutterError.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), - 'This usually indicates an error in the Flutter framework itself.' + 'This usually indicates an error in the Flutter framework itself.', ); }); } diff --git a/packages/flutter/test/rendering/sliver_fixed_extent_layout_test.dart b/packages/flutter/test/rendering/sliver_fixed_extent_layout_test.dart index 7562720f3ad..98cbbc9cf00 100644 --- a/packages/flutter/test/rendering/sliver_fixed_extent_layout_test.dart +++ b/packages/flutter/test/rendering/sliver_fixed_extent_layout_test.dart @@ -13,7 +13,7 @@ void main() { final List children = [ RenderSizedBox(const Size(400.0, 100.0)), RenderSizedBox(const Size(400.0, 100.0)), - RenderSizedBox(const Size(400.0, 100.0)) + RenderSizedBox(const Size(400.0, 100.0)), ]; final TestRenderSliverBoxChildManager childManager = TestRenderSliverBoxChildManager( children: children, diff --git a/packages/flutter/test/semantics/semantics_test.dart b/packages/flutter/test/semantics/semantics_test.dart index a88661b2612..401d6a086e5 100644 --- a/packages/flutter/test/semantics/semantics_test.dart +++ b/packages/flutter/test/semantics/semantics_test.dart @@ -79,7 +79,7 @@ void main() { node.updateWith( config: config, - childrenInInversePaintOrder: children + childrenInInversePaintOrder: children, ); children.add( SemanticsNode() @@ -92,7 +92,7 @@ void main() { try { node.updateWith( config: config, - childrenInInversePaintOrder: children + childrenInInversePaintOrder: children, ); } on FlutterError catch (e) { error = e; @@ -106,7 +106,7 @@ void main() { )); expect( error.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), - 'Instead of mutating the existing list, create a new list containing the desired `SemanticsNode`s.' + 'Instead of mutating the existing list, create a new list containing the desired `SemanticsNode`s.', ); } @@ -118,7 +118,7 @@ void main() { ..rect = const Rect.fromLTRB(5.0, 5.0, 10.0, 10.0), SemanticsNode() ..isMergedIntoParent = true - ..rect = const Rect.fromLTRB(10.0, 10.0, 20.0, 20.0) + ..rect = const Rect.fromLTRB(10.0, 10.0, 20.0, 20.0), ]; node.updateWith( config: config, @@ -133,7 +133,7 @@ void main() { ..rect = const Rect.fromLTRB(40.0, 14.0, 20.0, 20.0); node.updateWith( config: config, - childrenInInversePaintOrder: modifiedChildren + childrenInInversePaintOrder: modifiedChildren, ); } on FlutterError catch (e) { error = e; @@ -157,7 +157,7 @@ void main() { expect( error.diagnostics.singleWhere((DiagnosticsNode node) => node.level == DiagnosticLevel.hint).toString(), - 'Instead of mutating the existing list, create a new list containing the desired `SemanticsNode`s.' + 'Instead of mutating the existing list, create a new list containing the desired `SemanticsNode`s.', ); // Two previous children and two new children. expect(error.diagnostics.where((DiagnosticsNode node) => node.value is SemanticsNode).length, 4); diff --git a/packages/flutter/test/widgets/basic_test.dart b/packages/flutter/test/widgets/basic_test.dart index fa0f32e3bd7..8584faba45f 100644 --- a/packages/flutter/test/widgets/basic_test.dart +++ b/packages/flutter/test/widgets/basic_test.dart @@ -168,7 +168,7 @@ void main() { ), Text('one\ntwo\nthree\nfour\nfive\nsix\nseven', key: key2, - style: const TextStyle(fontSize: fontSize2) + style: const TextStyle(fontSize: fontSize2), ), ], ), diff --git a/packages/flutter/test/widgets/editable_text_test.dart b/packages/flutter/test/widgets/editable_text_test.dart index 85f37afbd4a..4a5e9fa6d27 100644 --- a/packages/flutter/test/widgets/editable_text_test.dart +++ b/packages/flutter/test/widgets/editable_text_test.dart @@ -1875,7 +1875,7 @@ void main() { actions: [ SemanticsAction.moveCursorBackwardByCharacter, SemanticsAction.setSelection, - SemanticsAction.moveCursorBackwardByWord + SemanticsAction.moveCursorBackwardByWord, ], value: expectedValue, textDirection: TextDirection.ltr, @@ -2292,7 +2292,7 @@ void main() { 'fontWeightIndex': 5, 'textAlignIndex': 4, 'textDirectionIndex': 0, - }) + }), ); }); diff --git a/packages/flutter/test/widgets/framework_test.dart b/packages/flutter/test/widgets/framework_test.dart index 86b66395bbd..19cf6d6cad1 100644 --- a/packages/flutter/test/widgets/framework_test.dart +++ b/packages/flutter/test/widgets/framework_test.dart @@ -132,7 +132,7 @@ void main() { '- Container-[<1>]\n' '- Container-[<2>]\n' 'A GlobalKey can only be specified on one widget at a time in the widget tree.' - ) + ), ); }); @@ -161,7 +161,7 @@ void main() { ' SizedBox-[GlobalKey#00000 problematic]\n' ' Placeholder-[GlobalKey#00000 problematic]\n' 'A GlobalKey can only be specified on one widget at a time in the widget tree.' - ) + ), ); }); @@ -190,7 +190,7 @@ void main() { ' Container-[GlobalKey#00000 problematic]\n' ' Placeholder-[GlobalKey#00000 problematic]\n' 'A GlobalKey can only be specified on one widget at a time in the widget tree.' - ) + ), ); }); diff --git a/packages/flutter/test/widgets/gesture_detector_semantics_test.dart b/packages/flutter/test/widgets/gesture_detector_semantics_test.dart index d8d9451dbe9..2d8cd555af5 100644 --- a/packages/flutter/test/widgets/gesture_detector_semantics_test.dart +++ b/packages/flutter/test/widgets/gesture_detector_semantics_test.dart @@ -380,7 +380,7 @@ void main() { ..onTapDown = (_) {logs.add('tapDown');} ..onTapCancel = () {logs.add('WRONG');} ..onSecondaryTapDown = (_) {logs.add('WRONG');}; - } + }, ), child: Container(), ), @@ -452,7 +452,7 @@ void main() { ..onLongPressUp = () {logs.add('LPUp');} ..onLongPressEnd = (_) {logs.add('LPEnd');} ..onLongPressMoveUpdate = (_) {logs.add('WRONG');}; - } + }, ), child: Container(), ), @@ -537,7 +537,7 @@ void main() { ..onEnd = (_) {logs.add('HEnd');} ..onUpdate = (_) {logs.add('HUpdate');} ..onCancel = () {logs.add('WRONG');}; - } + }, )..addAll(_buildGestureMap( () => PanGestureRecognizer(), (PanGestureRecognizer pan) { @@ -547,7 +547,7 @@ void main() { ..onEnd = (_) {logs.add('PEnd');} ..onUpdate = (_) {logs.add('PUpdate');} ..onCancel = () {logs.add('WRONG');}; - } + }, )); await tester.pumpWidget( Center( @@ -628,7 +628,7 @@ void main() { ..onEnd = (_) {logs.add('VEnd');} ..onUpdate = (_) {logs.add('VUpdate');} ..onCancel = () {logs.add('WRONG');}; - } + }, )..addAll(_buildGestureMap( () => PanGestureRecognizer(), (PanGestureRecognizer pan) { @@ -638,7 +638,7 @@ void main() { ..onEnd = (_) {logs.add('PEnd');} ..onUpdate = (_) {logs.add('PUpdate');} ..onCancel = () {logs.add('WRONG');}; - } + }, )); await tester.pumpWidget( Center( diff --git a/packages/flutter/test/widgets/heroes_test.dart b/packages/flutter/test/widgets/heroes_test.dart index 49cd5860cf8..4e7b8012986 100644 --- a/packages/flutter/test/widgets/heroes_test.dart +++ b/packages/flutter/test/widgets/heroes_test.dart @@ -948,7 +948,7 @@ Future main() async { key: heroBCKey, height: 150.0, child: const Text('Hero'), - ) + ), ), ), const SizedBox(height: 800.0), @@ -973,7 +973,7 @@ Future main() async { key: heroABKey, height: 200.0, child: const Text('Hero'), - ) + ), ), ), FlatButton( @@ -986,7 +986,7 @@ Future main() async { child: Container( height: 150.0, child: const Text('Hero'), - ) + ), ), ), const SizedBox(height: 800.0), @@ -1013,7 +1013,7 @@ Future main() async { height: 100.0, width: 100.0, child: const Text('Hero'), - ) + ), ), ), FlatButton( @@ -2126,9 +2126,9 @@ Future main() async { width: 10, height: 10, child: Text('1'), - ) - ] - ) + ), + ], + ), ), ); @@ -2192,16 +2192,16 @@ Future main() async { child: Image( image: imageProvider, key: imageKey1, - ) - ) + ), + ), ), const SizedBox( width: 10, height: 10, child: Text('1'), - ) - ] - ) + ), + ], + ), ), ); @@ -2216,7 +2216,7 @@ Future main() async { image: imageProvider, key: imageKey2, ) - ) + ), ), ); } @@ -2246,13 +2246,13 @@ Future main() async { // image1 should snap to the top left corner of the Row widget. expect( tester.getRect(find.byKey(imageKey1, skipOffstage: false)), - rectMoreOrLessEquals(tester.getTopLeft(find.widgetWithText(Row, '1')) & const Size(100, 100), epsilon: 0.01) + rectMoreOrLessEquals(tester.getTopLeft(find.widgetWithText(Row, '1')) & const Size(100, 100), epsilon: 0.01), ); // Text should respect the correct final size of image1. expect( tester.getTopRight(find.byKey(imageKey1, skipOffstage: false)).dx, - moreOrLessEquals(tester.getTopLeft(find.text('1')).dx, epsilon: 0.01) + moreOrLessEquals(tester.getTopLeft(find.text('1')).dx, epsilon: 0.01), ); }); diff --git a/packages/flutter/test/widgets/implicit_animations_test.dart b/packages/flutter/test/widgets/implicit_animations_test.dart index 45e66e04b20..7b674a9e68e 100644 --- a/packages/flutter/test/widgets/implicit_animations_test.dart +++ b/packages/flutter/test/widgets/implicit_animations_test.dart @@ -402,7 +402,7 @@ class _TestTweenAnimationBuilderWidgetState extends _TestAnimatedWidgetState { width: size, height: size, ); - } + }, ); } } diff --git a/packages/flutter/test/widgets/listener_test.dart b/packages/flutter/test/widgets/listener_test.dart index 1897ab6d914..e474c5f1a2e 100644 --- a/packages/flutter/test/widgets/listener_test.dart +++ b/packages/flutter/test/widgets/listener_test.dart @@ -368,7 +368,7 @@ void main() { 'constraints: MISSING', 'size: MISSING', 'behavior: deferToChild', - 'listeners: ' + 'listeners: ', ]); }); @@ -394,7 +394,7 @@ void main() { 'constraints: MISSING', 'size: MISSING', 'behavior: opaque', - 'listeners: down, move, up, cancel, signal' + 'listeners: down, move, up, cancel, signal', ]); }); } diff --git a/packages/flutter/test/widgets/mouse_region_test.dart b/packages/flutter/test/widgets/mouse_region_test.dart index dc57a011a5a..61fb53fb084 100644 --- a/packages/flutter/test/widgets/mouse_region_test.dart +++ b/packages/flutter/test/widgets/mouse_region_test.dart @@ -703,7 +703,7 @@ void main() { 'parentData: MISSING', 'constraints: MISSING', 'size: MISSING', - 'listeners: ' + 'listeners: ', ]); }); @@ -725,7 +725,7 @@ void main() { 'parentData: MISSING', 'constraints: MISSING', 'size: MISSING', - 'listeners: enter, hover, exit' + 'listeners: enter, hover, exit', ]); }); } diff --git a/packages/flutter/test/widgets/parent_data_test.dart b/packages/flutter/test/widgets/parent_data_test.dart index 30eae7e061f..883f9ee6f59 100644 --- a/packages/flutter/test/widgets/parent_data_test.dart +++ b/packages/flutter/test/widgets/parent_data_test.dart @@ -308,7 +308,7 @@ void main() { 'Positioned(no depth, left: 7.0, top: 6.0, dirty) has no Stack ancestor at all.\n' 'The ownership chain for the parent of the offending Positioned was:\n' ' Row ← Container ← [root]' - ) + ), ); await tester.pumpWidget( diff --git a/packages/flutter/test/widgets/physical_model_test.dart b/packages/flutter/test/widgets/physical_model_test.dart index 5e043f8ea36..666c054c532 100644 --- a/packages/flutter/test/widgets/physical_model_test.dart +++ b/packages/flutter/test/widgets/physical_model_test.dart @@ -169,7 +169,7 @@ void main() { child: Material( elevation: 2.0, color: Colors.red, - ) + ), ), ), ]; @@ -272,7 +272,7 @@ void main() { child: const Material( elevation: 2.0, color: Colors.red, - shape: CircleBorder() + shape: CircleBorder(), ), ), ), @@ -310,7 +310,7 @@ void main() { child: const Material( elevation: 2.0, color: Colors.red, - shape: CircleBorder() + shape: CircleBorder(), ), ), ), @@ -348,7 +348,7 @@ void main() { child: const Material( elevation: 2.0, color: Colors.red, - shape: CircleBorder() + shape: CircleBorder(), ), ), ), @@ -433,7 +433,7 @@ void main() { child: const Material( elevation: 2.0, color: Colors.red, - shape: CircleBorder() + shape: CircleBorder(), ), ), ), diff --git a/packages/flutter/test/widgets/platform_view_test.dart b/packages/flutter/test/widgets/platform_view_test.dart index 4a785882d1c..2526dd1de1f 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() { tester.widget( find.descendant( of: find.byType(AndroidView), - matching: find.byType(Focus) + matching: find.byType(Focus), ) ); final Element containerElement = tester.element(find.byKey(containerKey)); @@ -2161,7 +2161,7 @@ void main() { tester.widget( find.descendant( of: find.byType(PlatformViewLink), - matching: find.byType(Focus) + matching: find.byType(Focus), ) ); final FocusNode platformViewFocusNode = platformViewFocusWidget.focusNode; diff --git a/packages/flutter/test/widgets/reparent_state_harder_test.dart b/packages/flutter/test/widgets/reparent_state_harder_test.dart index 9d9e7a8bbf6..9a513daa4a2 100644 --- a/packages/flutter/test/widgets/reparent_state_harder_test.dart +++ b/packages/flutter/test/widgets/reparent_state_harder_test.dart @@ -38,7 +38,7 @@ class OrderSwitcherState extends State { ] : [ KeyedSubtree(child: widget.b), - widget.a + widget.a, ], ); } diff --git a/packages/flutter/test/widgets/route_notification_messages_test.dart b/packages/flutter/test/widgets/route_notification_messages_test.dart index 32f592734d0..74b1bc4423e 100644 --- a/packages/flutter/test/widgets/route_notification_messages_test.dart +++ b/packages/flutter/test/widgets/route_notification_messages_test.dart @@ -68,7 +68,7 @@ void main() { 'routePushed', arguments: { 'previousRouteName': null, - 'routeName': '/' + 'routeName': '/', }, )); @@ -83,7 +83,7 @@ void main() { 'routePushed', arguments: { 'previousRouteName': '/', - 'routeName': '/A' + 'routeName': '/A', }, )); @@ -98,7 +98,7 @@ void main() { 'routePopped', arguments: { 'previousRouteName': '/', - 'routeName': '/A' + 'routeName': '/A', }, )); }); @@ -137,7 +137,7 @@ void main() { 'routePushed', arguments: { 'previousRouteName': null, - 'routeName': '/' + 'routeName': '/', }, )); @@ -152,7 +152,7 @@ void main() { 'routePushed', arguments: { 'previousRouteName': '/', - 'routeName': '/A' + 'routeName': '/A', }, )); @@ -167,7 +167,7 @@ void main() { 'routeReplaced', arguments: { 'previousRouteName': '/A', - 'routeName': '/B' + 'routeName': '/B', }, )); }); diff --git a/packages/flutter/test/widgets/scrollbar_test.dart b/packages/flutter/test/widgets/scrollbar_test.dart index 32869ae753a..7ee625dd861 100644 --- a/packages/flutter/test/widgets/scrollbar_test.dart +++ b/packages/flutter/test/widgets/scrollbar_test.dart @@ -51,7 +51,7 @@ void main() { maxScrollExtent: 0, pixels: 0, viewportDimension: 100, - axisDirection: AxisDirection.down + axisDirection: AxisDirection.down, ); test( @@ -91,7 +91,7 @@ void main() { expect(rect1.left, size.width - _kThickness); expect(rect1.width, _kThickness); expect(rect1.height >= minLen, true); - } + }, ); test( @@ -138,7 +138,7 @@ void main() { expect(nearEqual(rect.height, viewportDimension * viewportDimension / (viewportDimension + maxExtent), 0.001), true); expect(nearEqual(lastCoefficient, newCoefficient, 0.001), true); } - } + }, ); test( @@ -179,7 +179,7 @@ void main() { painter.paint(testCanvas, size); expect(size.height - captureRect().bottom, margin); } - } + }, ); test( @@ -217,7 +217,7 @@ void main() { margin, textDirection == TextDirection.ltr ? size.width - rect.right - : rect.left + : rect.left, ); break; case AxisDirection.left: @@ -227,7 +227,7 @@ void main() { } } } - } + }, ); group('Padding works for all scroll directions', () { @@ -465,7 +465,7 @@ void main() { final Iterable metricsList = Iterable.generate( 9999, - (int index) => startingMetrics.copyWith(pixels: minScrollExtent + index * size.height / 3) + (int index) => startingMetrics.copyWith(pixels: minScrollExtent + index * size.height / 3), ) .takeWhile((ScrollMetrics metrics) => !metrics.outOfRange); @@ -491,6 +491,6 @@ void main() { previousRect = rect; } } - } + }, ); } diff --git a/packages/flutter/test/widgets/selectable_text_test.dart b/packages/flutter/test/widgets/selectable_text_test.dart index d1075bbcec8..a8ef552e306 100644 --- a/packages/flutter/test/widgets/selectable_text_test.dart +++ b/packages/flutter/test/widgets/selectable_text_test.dart @@ -221,7 +221,7 @@ void main() { text: 'First line!', style: TextStyle( fontSize: 14, - fontFamily: 'Roboto' + fontFamily: 'Roboto', ), children: [ TextSpan( @@ -265,7 +265,7 @@ void main() { text: 'First line!', style: TextStyle( fontSize: 14, - fontFamily: 'Roboto' + fontFamily: 'Roboto', ), children: [ WidgetSpan( @@ -335,7 +335,7 @@ void main() { boilerplate( child: const SelectableText( text, - textWidthBasis: TextWidthBasis.parent + textWidthBasis: TextWidthBasis.parent, ), ) ); @@ -346,7 +346,7 @@ void main() { boilerplate( child: const SelectableText( text, - textWidthBasis: TextWidthBasis.longestLine + textWidthBasis: TextWidthBasis.longestLine, ), ) ); @@ -649,7 +649,7 @@ void main() { child: SelectableText( 'abc def ghi', dragStartBehavior: DragStartBehavior.down, - style: TextStyle(fontFamily: 'Ahem', fontSize: 10.0) + style: TextStyle(fontFamily: 'Ahem', fontSize: 10.0), ), ), ), @@ -1200,7 +1200,7 @@ void main() { ), SelectableText( 'text 2', - key: key2 + key: key2, ), ], ), @@ -1241,7 +1241,7 @@ void main() { SemanticsFlag.isReadOnly, SemanticsFlag.isMultiline, ] - ) + ), ); semantics.dispose(); @@ -1952,7 +1952,7 @@ void main() { textDirection: TextDirection.ltr, actions: [ SemanticsAction.tap, - SemanticsAction.longPress + SemanticsAction.longPress, ], flags: [ SemanticsFlag.isReadOnly, diff --git a/packages/flutter/test/widgets/slivers_appbar_floating_pinned_test.dart b/packages/flutter/test/widgets/slivers_appbar_floating_pinned_test.dart index cb6bdd30689..4cc3fd3f5c0 100644 --- a/packages/flutter/test/widgets/slivers_appbar_floating_pinned_test.dart +++ b/packages/flutter/test/widgets/slivers_appbar_floating_pinned_test.dart @@ -142,7 +142,7 @@ void main() { flags: [SemanticsFlag.isHidden], ), ], - ) + ), ], ), ], @@ -229,7 +229,7 @@ void main() { flags: [SemanticsFlag.isHidden], ), ], - ) + ), ], ), ], diff --git a/packages/flutter/test/widgets/slivers_keepalive_test.dart b/packages/flutter/test/widgets/slivers_keepalive_test.dart index 3f67d177fa4..3ee395e070d 100644 --- a/packages/flutter/test/widgets/slivers_keepalive_test.dart +++ b/packages/flutter/test/widgets/slivers_keepalive_test.dart @@ -403,7 +403,7 @@ List createSwitchedChildList(List childList, int i, int j) { class SwitchingChildBuilderTest extends StatefulWidget { const SwitchingChildBuilderTest({ this.children, - Key key + Key key, }) : super(key: key); final List children; @@ -475,7 +475,7 @@ class SwitchingChildListTest extends StatefulWidget { const SwitchingChildListTest({ this.children, this.viewportFraction = 1.0, - Key key + Key key, }) : super(key: key); final List children; @@ -512,7 +512,7 @@ class SwitchingSliverListTest extends StatefulWidget { const SwitchingSliverListTest({ this.children, this.viewportFraction = 1.0, - Key key + Key key, }) : super(key: key); final List children; @@ -548,7 +548,7 @@ class WidgetTest0 extends StatefulWidget { const WidgetTest0({ this.text, this.keepAlive = false, - Key key + Key key, }) : super(key: key); final String text; @@ -581,7 +581,7 @@ class WidgetTest1 extends StatefulWidget { const WidgetTest1({ this.text, this.keepAlive = false, - Key key + Key key, }) : super(key: key); final String text; @@ -614,7 +614,7 @@ class WidgetTest2 extends StatefulWidget { const WidgetTest2({ this.text, this.keepAlive = false, - Key key + Key key, }) : super(key: key); final String text; diff --git a/packages/flutter/test/widgets/slivers_test.dart b/packages/flutter/test/widgets/slivers_test.dart index 0dd72150ba4..f8e13f24f41 100644 --- a/packages/flutter/test/widgets/slivers_test.dart +++ b/packages/flutter/test/widgets/slivers_test.dart @@ -39,7 +39,7 @@ Future testSliverFixedExtentList(WidgetTester tester, List items) key: ValueKey(items[index]), child: KeepAlive( items[index], - ) + ), ); }, childCount : items.length, @@ -47,7 +47,7 @@ Future testSliverFixedExtentList(WidgetTester tester, List items) final ValueKey valueKey = key; final String data = valueKey.value; return items.indexOf(data); - } + }, ), ), ], @@ -441,7 +441,7 @@ class TestSliverGrid extends StatelessWidget { ), ), ], - ) + ), ); } } @@ -464,7 +464,7 @@ class TestSliverFixedExtentList extends StatelessWidget { ), ), ], - ) + ), ); } } diff --git a/packages/flutter/test/widgets/table_test.dart b/packages/flutter/test/widgets/table_test.dart index 7d2797a135a..a3525740d41 100644 --- a/packages/flutter/test/widgets/table_test.dart +++ b/packages/flutter/test/widgets/table_test.dart @@ -927,7 +927,7 @@ void main() { // Should not crash. expect(find.text('CRASHHH'), findsOneWidget); - } + }, ); // TODO(ianh): Test handling of TableCell object diff --git a/packages/flutter/test/widgets/text_golden_test.dart b/packages/flutter/test/widgets/text_golden_test.dart index 4b0d29a8d12..80936faf1d9 100644 --- a/packages/flutter/test/widgets/text_golden_test.dart +++ b/packages/flutter/test/widgets/text_golden_test.dart @@ -604,10 +604,10 @@ void main() { decoration: BoxDecoration( color: Color(0xffff0000), ), - ) + ), ), ), - ) + ), ), ), TextSpan(text: 'hello world! sieze the day!'), @@ -624,7 +624,7 @@ void main() { WidgetSpan( child: Checkbox(value: false, onChanged: null), alignment: PlaceholderAlignment.baseline, - baseline: TextBaseline.alphabetic + baseline: TextBaseline.alphabetic, ), WidgetSpan( child: SizedBox( @@ -754,10 +754,10 @@ void main() { decoration: BoxDecoration( color: Color(0xff5f00f0), ), - ) + ), ), ), - ) + ), ), ), ], @@ -780,10 +780,10 @@ void main() { decoration: BoxDecoration( color: Color(0xff5f0000), ), - ) + ), ), ), - ) + ), ), ), ], @@ -810,10 +810,10 @@ void main() { decoration: BoxDecoration( color: Color(0xff0000ff), ), - ) + ), ), ), - ) + ), ), ), ], @@ -885,10 +885,10 @@ void main() { decoration: BoxDecoration( color: Color(0xffff0000), ), - ) + ), ), ), - ) + ), ), ), TextSpan(text: 'hello world! sieze the day!'), @@ -904,7 +904,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( alignment: PlaceholderAlignment.baseline, @@ -918,7 +918,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( alignment: PlaceholderAlignment.baseline, @@ -995,10 +995,10 @@ void main() { decoration: BoxDecoration( color: Color(0xffff0000), ), - ) + ), ), ), - ) + ), ), ), TextSpan(text: 'hello world! sieze the day!'), @@ -1014,7 +1014,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( alignment: PlaceholderAlignment.aboveBaseline, @@ -1028,7 +1028,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( alignment: PlaceholderAlignment.aboveBaseline, @@ -1105,10 +1105,10 @@ void main() { decoration: BoxDecoration( color: Color(0xffff0000), ), - ) + ), ), ), - ) + ), ), ), TextSpan(text: 'hello world! sieze the day!'), @@ -1124,7 +1124,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( alignment: PlaceholderAlignment.belowBaseline, @@ -1138,7 +1138,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( alignment: PlaceholderAlignment.belowBaseline, @@ -1215,10 +1215,10 @@ void main() { decoration: BoxDecoration( color: Color(0xffff0000), ), - ) + ), ), ), - ) + ), ), ), TextSpan(text: 'hello world! sieze the day!'), @@ -1234,7 +1234,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( alignment: PlaceholderAlignment.top, @@ -1248,7 +1248,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( alignment: PlaceholderAlignment.top, @@ -1325,10 +1325,10 @@ void main() { decoration: BoxDecoration( color: Color(0xffff0000), ), - ) + ), ), ), - ) + ), ), ), TextSpan(text: 'hello world! sieze the day!'), @@ -1344,7 +1344,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( alignment: PlaceholderAlignment.middle, @@ -1358,7 +1358,7 @@ void main() { width: 20, height: 20, child: Checkbox(value: true, onChanged: null), - ) + ), ), WidgetSpan( alignment: PlaceholderAlignment.middle, diff --git a/packages/flutter/test/widgets/text_selection_test.dart b/packages/flutter/test/widgets/text_selection_test.dart index da16adf2d45..40eda84c78b 100644 --- a/packages/flutter/test/widgets/text_selection_test.dart +++ b/packages/flutter/test/widgets/text_selection_test.dart @@ -83,7 +83,7 @@ void main() { MaterialApp( home: provider.buildGestureDetector( behavior: HitTestBehavior.translucent, - child: FakeEditableText(key: editableTextKey) + child: FakeEditableText(key: editableTextKey), ) ) ); diff --git a/packages/flutter/test/widgets/text_test.dart b/packages/flutter/test/widgets/text_test.dart index 075f0366981..c14b382fb9b 100644 --- a/packages/flutter/test/widgets/text_test.dart +++ b/packages/flutter/test/widgets/text_test.dart @@ -283,7 +283,7 @@ void main() { TestSemantics( label: 'world', textDirection: TextDirection.ltr, - actions: [SemanticsAction.tap] + actions: [SemanticsAction.tap], ), ], ),