diff --git a/dev/manual_tests/lib/drag_and_drop.dart b/dev/manual_tests/lib/drag_and_drop.dart index d5a3a549f8..2d9d69bbce 100644 --- a/dev/manual_tests/lib/drag_and_drop.dart +++ b/dev/manual_tests/lib/drag_and_drop.dart @@ -170,7 +170,7 @@ class DashOutlineCirclePainter extends CustomPainter { } @override - bool shouldRepaint(DashOutlineCirclePainter oldPainter) => false; + bool shouldRepaint(DashOutlineCirclePainter oldDelegate) => false; } class MovableBall extends StatelessWidget { diff --git a/examples/flutter_gallery/lib/demo/shrine/shrine_theme.dart b/examples/flutter_gallery/lib/demo/shrine/shrine_theme.dart index 8dc5cf5e73..cebf14d2af 100644 --- a/examples/flutter_gallery/lib/demo/shrine/shrine_theme.dart +++ b/examples/flutter_gallery/lib/demo/shrine/shrine_theme.dart @@ -51,5 +51,5 @@ class ShrineTheme extends InheritedWidget { static ShrineTheme of(BuildContext context) => context.inheritFromWidgetOfExactType(ShrineTheme); @override - bool updateShouldNotify(ShrineTheme old) => false; + bool updateShouldNotify(ShrineTheme oldWidget) => false; } diff --git a/examples/stocks/lib/stock_arrow.dart b/examples/stocks/lib/stock_arrow.dart index 27c9cdd2ac..7f72e43c67 100644 --- a/examples/stocks/lib/stock_arrow.dart +++ b/examples/stocks/lib/stock_arrow.dart @@ -46,9 +46,9 @@ class StockArrowPainter extends CustomPainter { } @override - bool shouldRepaint(StockArrowPainter oldPainter) { - return oldPainter.color != color - || oldPainter.percentChange != percentChange; + bool shouldRepaint(StockArrowPainter oldDelegate) { + return oldDelegate.color != color + || oldDelegate.percentChange != percentChange; } } diff --git a/packages/flutter/lib/src/cupertino/button.dart b/packages/flutter/lib/src/cupertino/button.dart index ccaf44de87..3b037a1743 100644 --- a/packages/flutter/lib/src/cupertino/button.dart +++ b/packages/flutter/lib/src/cupertino/button.dart @@ -105,9 +105,9 @@ class CupertinoButton extends StatefulWidget { _CupertinoButtonState createState() => new _CupertinoButtonState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new FlagProperty('enabled', value: enabled, ifFalse: 'disabled')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new FlagProperty('enabled', value: enabled, ifFalse: 'disabled')); } } diff --git a/packages/flutter/lib/src/cupertino/slider.dart b/packages/flutter/lib/src/cupertino/slider.dart index 44845362cf..6a3c01b2cc 100644 --- a/packages/flutter/lib/src/cupertino/slider.dart +++ b/packages/flutter/lib/src/cupertino/slider.dart @@ -111,11 +111,11 @@ class CupertinoSlider extends StatefulWidget { _CupertinoSliderState createState() => new _CupertinoSliderState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('value', value)); - description.add(new DoubleProperty('min', min)); - description.add(new DoubleProperty('max', max)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('value', value)); + properties.add(new DoubleProperty('min', min)); + properties.add(new DoubleProperty('max', max)); } } diff --git a/packages/flutter/lib/src/cupertino/switch.dart b/packages/flutter/lib/src/cupertino/switch.dart index 6333c6b242..75bd69d67b 100644 --- a/packages/flutter/lib/src/cupertino/switch.dart +++ b/packages/flutter/lib/src/cupertino/switch.dart @@ -88,10 +88,10 @@ class CupertinoSwitch extends StatefulWidget { _CupertinoSwitchState createState() => new _CupertinoSwitchState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new FlagProperty('value', value: value, ifTrue: 'on', ifFalse: 'off', showName: true)); - description.add(new ObjectFlagProperty>('onChanged', onChanged, ifNull: 'disabled')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new FlagProperty('value', value: value, ifTrue: 'on', ifFalse: 'off', showName: true)); + properties.add(new ObjectFlagProperty>('onChanged', onChanged, ifNull: 'disabled')); } } diff --git a/packages/flutter/lib/src/foundation/basic_types.dart b/packages/flutter/lib/src/foundation/basic_types.dart index 489ef8c22c..302aa9d2d4 100644 --- a/packages/flutter/lib/src/foundation/basic_types.dart +++ b/packages/flutter/lib/src/foundation/basic_types.dart @@ -203,8 +203,8 @@ class CachingIterable extends IterableBase { } @override - Iterable where(bool f(E element)) { - return new CachingIterable(super.where(f).iterator); + Iterable where(bool test(E element)) { + return new CachingIterable(super.where(test).iterator); } @override diff --git a/packages/flutter/lib/src/foundation/observer_list.dart b/packages/flutter/lib/src/foundation/observer_list.dart index 125f3f92b6..28ad46c933 100644 --- a/packages/flutter/lib/src/foundation/observer_list.dart +++ b/packages/flutter/lib/src/foundation/observer_list.dart @@ -32,9 +32,9 @@ class ObserverList extends Iterable { } @override - bool contains(Object item) { + bool contains(Object element) { if (_list.length < 3) - return _list.contains(item); + return _list.contains(element); if (_isDirty) { if (_set == null) { @@ -46,7 +46,7 @@ class ObserverList extends Iterable { _isDirty = false; } - return _set.contains(item); + return _set.contains(element); } @override diff --git a/packages/flutter/lib/src/gestures/recognizer.dart b/packages/flutter/lib/src/gestures/recognizer.dart index 524c887add..c4b01edffa 100644 --- a/packages/flutter/lib/src/gestures/recognizer.dart +++ b/packages/flutter/lib/src/gestures/recognizer.dart @@ -117,9 +117,9 @@ abstract class GestureRecognizer extends GestureArenaMember with DiagnosticableT } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('debugOwner', debugOwner, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('debugOwner', debugOwner, defaultValue: null)); } } @@ -364,8 +364,8 @@ abstract class PrimaryPointerGestureRecognizer extends OneSequenceGestureRecogni } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('state', state)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('state', state)); } } diff --git a/packages/flutter/lib/src/gestures/tap.dart b/packages/flutter/lib/src/gestures/tap.dart index b2c748bdc3..c9034c023a 100644 --- a/packages/flutter/lib/src/gestures/tap.dart +++ b/packages/flutter/lib/src/gestures/tap.dart @@ -173,10 +173,10 @@ class TapGestureRecognizer extends PrimaryPointerGestureRecognizer { String get debugDescription => 'tap'; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new FlagProperty('wonArenaForPrimaryPointer', value: _wonArenaForPrimaryPointer, ifTrue: 'won arena')); - description.add(new DiagnosticsProperty('finalPosition', _finalPosition, defaultValue: null)); - description.add(new FlagProperty('sentTapDown', value: _sentTapDown, ifTrue: 'sent tap down')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new FlagProperty('wonArenaForPrimaryPointer', value: _wonArenaForPrimaryPointer, ifTrue: 'won arena')); + properties.add(new DiagnosticsProperty('finalPosition', _finalPosition, defaultValue: null)); + properties.add(new FlagProperty('sentTapDown', value: _sentTapDown, ifTrue: 'sent tap down')); } } diff --git a/packages/flutter/lib/src/material/button.dart b/packages/flutter/lib/src/material/button.dart index 8d0a9c16fc..374c926a23 100644 --- a/packages/flutter/lib/src/material/button.dart +++ b/packages/flutter/lib/src/material/button.dart @@ -397,8 +397,8 @@ class MaterialButton extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new FlagProperty('enabled', value: enabled, ifFalse: 'disabled')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new FlagProperty('enabled', value: enabled, ifFalse: 'disabled')); } } diff --git a/packages/flutter/lib/src/material/button_theme.dart b/packages/flutter/lib/src/material/button_theme.dart index ef11c09c50..c59e4e292e 100644 --- a/packages/flutter/lib/src/material/button_theme.dart +++ b/packages/flutter/lib/src/material/button_theme.dart @@ -133,7 +133,7 @@ class ButtonTheme extends InheritedWidget { } @override - bool updateShouldNotify(ButtonTheme oldTheme) => data != oldTheme.data; + bool updateShouldNotify(ButtonTheme oldWidget) => data != oldWidget.data; } /// Used with [ButtonTheme] to configure the color and geometry of buttons. @@ -274,15 +274,15 @@ class ButtonThemeData extends Diagnosticable { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); const ButtonThemeData defaultTheme = const ButtonThemeData(); - description.add(new EnumProperty('textTheme', textTheme, defaultValue: defaultTheme.textTheme)); - description.add(new DoubleProperty('minWidth', minWidth, defaultValue: defaultTheme.minWidth)); - description.add(new DoubleProperty('height', height, defaultValue: defaultTheme.height)); - description.add(new DiagnosticsProperty('padding', padding, defaultValue: defaultTheme.padding)); - description.add(new DiagnosticsProperty('shape', shape, defaultValue: defaultTheme.shape)); - description.add(new FlagProperty('alignedDropdown', + properties.add(new EnumProperty('textTheme', textTheme, defaultValue: defaultTheme.textTheme)); + properties.add(new DoubleProperty('minWidth', minWidth, defaultValue: defaultTheme.minWidth)); + properties.add(new DoubleProperty('height', height, defaultValue: defaultTheme.height)); + properties.add(new DiagnosticsProperty('padding', padding, defaultValue: defaultTheme.padding)); + properties.add(new DiagnosticsProperty('shape', shape, defaultValue: defaultTheme.shape)); + properties.add(new FlagProperty('alignedDropdown', value: alignedDropdown, defaultValue: defaultTheme.alignedDropdown, ifTrue: 'dropdown width matches button', diff --git a/packages/flutter/lib/src/material/dropdown.dart b/packages/flutter/lib/src/material/dropdown.dart index a15cc1fac4..f7abdb4aad 100644 --- a/packages/flutter/lib/src/material/dropdown.dart +++ b/packages/flutter/lib/src/material/dropdown.dart @@ -438,7 +438,7 @@ class DropdownButtonHideUnderline extends InheritedWidget { } @override - bool updateShouldNotify(DropdownButtonHideUnderline old) => false; + bool updateShouldNotify(DropdownButtonHideUnderline oldWidget) => false; } /// A material design button for selecting from a list of items. diff --git a/packages/flutter/lib/src/material/flat_button.dart b/packages/flutter/lib/src/material/flat_button.dart index 1e302cd747..ee002ab8e0 100644 --- a/packages/flutter/lib/src/material/flat_button.dart +++ b/packages/flutter/lib/src/material/flat_button.dart @@ -298,18 +298,18 @@ class FlatButton extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new ObjectFlagProperty('onPressed', onPressed, ifNull: 'disabled')); - description.add(new DiagnosticsProperty('textTheme', textTheme, defaultValue: null)); - description.add(new DiagnosticsProperty('textColor', textColor, defaultValue: null)); - description.add(new DiagnosticsProperty('disabledTextColor', disabledTextColor, defaultValue: null)); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); - description.add(new DiagnosticsProperty('disabledColor', disabledColor, defaultValue: null)); - description.add(new DiagnosticsProperty('highlightColor', highlightColor, defaultValue: null)); - description.add(new DiagnosticsProperty('splashColor', splashColor, defaultValue: null)); - description.add(new DiagnosticsProperty('colorBrightness', colorBrightness, defaultValue: null)); - description.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); - description.add(new DiagnosticsProperty('shape', shape, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new ObjectFlagProperty('onPressed', onPressed, ifNull: 'disabled')); + properties.add(new DiagnosticsProperty('textTheme', textTheme, defaultValue: null)); + properties.add(new DiagnosticsProperty('textColor', textColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('disabledTextColor', disabledTextColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); + properties.add(new DiagnosticsProperty('disabledColor', disabledColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('highlightColor', highlightColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('splashColor', splashColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('colorBrightness', colorBrightness, defaultValue: null)); + properties.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); + properties.add(new DiagnosticsProperty('shape', shape, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/material/icon_button.dart b/packages/flutter/lib/src/material/icon_button.dart index fe833d6fea..482b840504 100644 --- a/packages/flutter/lib/src/material/icon_button.dart +++ b/packages/flutter/lib/src/material/icon_button.dart @@ -236,10 +236,10 @@ class IconButton extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('icon', icon, showName: false)); - description.add(new ObjectFlagProperty('onPressed', onPressed, ifNull: 'disabled')); - description.add(new StringProperty('tooltip', tooltip, defaultValue: null, quoted: false)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('icon', icon, showName: false)); + properties.add(new ObjectFlagProperty('onPressed', onPressed, ifNull: 'disabled')); + properties.add(new StringProperty('tooltip', tooltip, defaultValue: null, quoted: false)); } } diff --git a/packages/flutter/lib/src/material/ink_decoration.dart b/packages/flutter/lib/src/material/ink_decoration.dart index 8cb475e942..50a1b24d69 100644 --- a/packages/flutter/lib/src/material/ink_decoration.dart +++ b/packages/flutter/lib/src/material/ink_decoration.dart @@ -214,10 +214,10 @@ class Ink extends StatefulWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); - description.add(new DiagnosticsProperty('bg', decoration, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); + properties.add(new DiagnosticsProperty('bg', decoration, defaultValue: null)); } @override diff --git a/packages/flutter/lib/src/material/ink_well.dart b/packages/flutter/lib/src/material/ink_well.dart index cff8cacf34..e919aed830 100644 --- a/packages/flutter/lib/src/material/ink_well.dart +++ b/packages/flutter/lib/src/material/ink_well.dart @@ -364,8 +364,8 @@ class InkResponse extends StatefulWidget { _InkResponseState createState() => new _InkResponseState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); final List gestures = []; if (onTap != null) gestures.add('tap'); @@ -373,9 +373,9 @@ class InkResponse extends StatefulWidget { gestures.add('double tap'); if (onLongPress != null) gestures.add('long press'); - description.add(new IterableProperty('gestures', gestures, ifEmpty: '')); - description.add(new DiagnosticsProperty('containedInkWell', containedInkWell, level: DiagnosticLevel.fine)); - description.add(new DiagnosticsProperty( + properties.add(new IterableProperty('gestures', gestures, ifEmpty: '')); + properties.add(new DiagnosticsProperty('containedInkWell', containedInkWell, level: DiagnosticLevel.fine)); + properties.add(new DiagnosticsProperty( 'highlightShape', highlightShape, description: '${containedInkWell ? "clipped to " : ""}$highlightShape', diff --git a/packages/flutter/lib/src/material/input_decorator.dart b/packages/flutter/lib/src/material/input_decorator.dart index 43c5e3c665..a5798dca72 100644 --- a/packages/flutter/lib/src/material/input_decorator.dart +++ b/packages/flutter/lib/src/material/input_decorator.dart @@ -1322,12 +1322,12 @@ class InputDecorator extends StatefulWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('decoration', decoration)); - description.add(new DiagnosticsProperty('baseStyle', baseStyle, defaultValue: null)); - description.add(new DiagnosticsProperty('isFocused', isFocused)); - description.add(new DiagnosticsProperty('isEmpty', isEmpty)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('decoration', decoration)); + properties.add(new DiagnosticsProperty('baseStyle', baseStyle, defaultValue: null)); + properties.add(new DiagnosticsProperty('isFocused', isFocused)); + properties.add(new DiagnosticsProperty('isEmpty', isEmpty)); } } @@ -2319,21 +2319,21 @@ class InputDecorationTheme extends Diagnosticable { final InputBorder border; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); const InputDecorationTheme defaultTheme = const InputDecorationTheme(); - description.add(new DiagnosticsProperty('labelStyle', labelStyle, defaultValue: defaultTheme.labelStyle)); - description.add(new DiagnosticsProperty('helperStyle', helperStyle, defaultValue: defaultTheme.helperStyle)); - description.add(new DiagnosticsProperty('hintStyle', hintStyle, defaultValue: defaultTheme.hintStyle)); - description.add(new DiagnosticsProperty('errorStyle', errorStyle, defaultValue: defaultTheme.errorStyle)); - description.add(new DiagnosticsProperty('isDense', isDense, defaultValue: defaultTheme.isDense)); - description.add(new DiagnosticsProperty('contentPadding', contentPadding, defaultValue: defaultTheme.contentPadding)); - description.add(new DiagnosticsProperty('isCollapsed', isCollapsed, defaultValue: defaultTheme.isCollapsed)); - description.add(new DiagnosticsProperty('prefixStyle', prefixStyle, defaultValue: defaultTheme.prefixStyle)); - description.add(new DiagnosticsProperty('suffixStyle', suffixStyle, defaultValue: defaultTheme.suffixStyle)); - description.add(new DiagnosticsProperty('counterStyle', counterStyle, defaultValue: defaultTheme.counterStyle)); - description.add(new DiagnosticsProperty('filled', filled, defaultValue: defaultTheme.filled)); - description.add(new DiagnosticsProperty('fillColor', fillColor, defaultValue: defaultTheme.fillColor)); - description.add(new DiagnosticsProperty('border', border, defaultValue: defaultTheme.border)); + properties.add(new DiagnosticsProperty('labelStyle', labelStyle, defaultValue: defaultTheme.labelStyle)); + properties.add(new DiagnosticsProperty('helperStyle', helperStyle, defaultValue: defaultTheme.helperStyle)); + properties.add(new DiagnosticsProperty('hintStyle', hintStyle, defaultValue: defaultTheme.hintStyle)); + properties.add(new DiagnosticsProperty('errorStyle', errorStyle, defaultValue: defaultTheme.errorStyle)); + properties.add(new DiagnosticsProperty('isDense', isDense, defaultValue: defaultTheme.isDense)); + properties.add(new DiagnosticsProperty('contentPadding', contentPadding, defaultValue: defaultTheme.contentPadding)); + properties.add(new DiagnosticsProperty('isCollapsed', isCollapsed, defaultValue: defaultTheme.isCollapsed)); + properties.add(new DiagnosticsProperty('prefixStyle', prefixStyle, defaultValue: defaultTheme.prefixStyle)); + properties.add(new DiagnosticsProperty('suffixStyle', suffixStyle, defaultValue: defaultTheme.suffixStyle)); + properties.add(new DiagnosticsProperty('counterStyle', counterStyle, defaultValue: defaultTheme.counterStyle)); + properties.add(new DiagnosticsProperty('filled', filled, defaultValue: defaultTheme.filled)); + properties.add(new DiagnosticsProperty('fillColor', fillColor, defaultValue: defaultTheme.fillColor)); + properties.add(new DiagnosticsProperty('border', border, defaultValue: defaultTheme.border)); } } diff --git a/packages/flutter/lib/src/material/list_tile.dart b/packages/flutter/lib/src/material/list_tile.dart index b7f37e7433..0f9af7ab9c 100644 --- a/packages/flutter/lib/src/material/list_tile.dart +++ b/packages/flutter/lib/src/material/list_tile.dart @@ -104,12 +104,12 @@ class ListTileTheme extends InheritedWidget { } @override - bool updateShouldNotify(ListTileTheme oldTheme) { - return dense != oldTheme.dense - || style != oldTheme.style - || selectedColor != oldTheme.selectedColor - || iconColor != oldTheme.iconColor - || textColor != oldTheme.textColor; + bool updateShouldNotify(ListTileTheme oldWidget) { + return dense != oldWidget.dense + || style != oldWidget.style + || selectedColor != oldWidget.selectedColor + || iconColor != oldWidget.iconColor + || textColor != oldWidget.textColor; } } diff --git a/packages/flutter/lib/src/material/material.dart b/packages/flutter/lib/src/material/material.dart index bc02c33be9..e11ac163ac 100644 --- a/packages/flutter/lib/src/material/material.dart +++ b/packages/flutter/lib/src/material/material.dart @@ -258,15 +258,15 @@ class Material extends StatefulWidget { _MaterialState createState() => new _MaterialState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('type', type)); - description.add(new DoubleProperty('elevation', elevation, defaultValue: 0.0)); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); - description.add(new DiagnosticsProperty('shadowColor', shadowColor, defaultValue: const Color(0xFF000000))); - textStyle?.debugFillProperties(description, prefix: 'textStyle.'); - description.add(new DiagnosticsProperty('shape', shape, defaultValue: null)); - description.add(new EnumProperty('borderRadius', borderRadius, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('type', type)); + properties.add(new DoubleProperty('elevation', elevation, defaultValue: 0.0)); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); + properties.add(new DiagnosticsProperty('shadowColor', shadowColor, defaultValue: const Color(0xFF000000))); + textStyle?.debugFillProperties(properties, prefix: 'textStyle.'); + properties.add(new DiagnosticsProperty('shape', shape, defaultValue: null)); + properties.add(new EnumProperty('borderRadius', borderRadius, defaultValue: null)); } /// The default radius of an ink splash in logical pixels. diff --git a/packages/flutter/lib/src/material/outline_button.dart b/packages/flutter/lib/src/material/outline_button.dart index 13a300a903..233389247a 100644 --- a/packages/flutter/lib/src/material/outline_button.dart +++ b/packages/flutter/lib/src/material/outline_button.dart @@ -239,21 +239,21 @@ class OutlineButton extends StatefulWidget { @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new ObjectFlagProperty('onPressed', onPressed, ifNull: 'disabled')); - description.add(new DiagnosticsProperty('textTheme', textTheme, defaultValue: null)); - description.add(new DiagnosticsProperty('textColor', textColor, defaultValue: null)); - description.add(new DiagnosticsProperty('disabledTextColor', disabledTextColor, defaultValue: null)); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); - description.add(new DiagnosticsProperty('highlightColor', highlightColor, defaultValue: null)); - description.add(new DiagnosticsProperty('splashColor', splashColor, defaultValue: null)); - description.add(new DiagnosticsProperty('highlightElevation', highlightElevation, defaultValue: 2.0)); - description.add(new DiagnosticsProperty('borderSide', borderSide, defaultValue: null)); - description.add(new DiagnosticsProperty('disabledBorderColor', disabledBorderColor, defaultValue: null)); - description.add(new DiagnosticsProperty('highlightedBorderColor', highlightedBorderColor, defaultValue: null)); - description.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); - description.add(new DiagnosticsProperty('shape', shape, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new ObjectFlagProperty('onPressed', onPressed, ifNull: 'disabled')); + properties.add(new DiagnosticsProperty('textTheme', textTheme, defaultValue: null)); + properties.add(new DiagnosticsProperty('textColor', textColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('disabledTextColor', disabledTextColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); + properties.add(new DiagnosticsProperty('highlightColor', highlightColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('splashColor', splashColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('highlightElevation', highlightElevation, defaultValue: 2.0)); + properties.add(new DiagnosticsProperty('borderSide', borderSide, defaultValue: null)); + properties.add(new DiagnosticsProperty('disabledBorderColor', disabledBorderColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('highlightedBorderColor', highlightedBorderColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); + properties.add(new DiagnosticsProperty('shape', shape, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/material/progress_indicator.dart b/packages/flutter/lib/src/material/progress_indicator.dart index d440fc93e3..3d3050be9a 100644 --- a/packages/flutter/lib/src/material/progress_indicator.dart +++ b/packages/flutter/lib/src/material/progress_indicator.dart @@ -61,9 +61,9 @@ abstract class ProgressIndicator extends StatefulWidget { Color _getValueColor(BuildContext context) => valueColor?.value ?? Theme.of(context).accentColor; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new PercentProperty('value', value, showName: false, ifNull: '')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new PercentProperty('value', value, showName: false, ifNull: '')); } } diff --git a/packages/flutter/lib/src/material/raised_button.dart b/packages/flutter/lib/src/material/raised_button.dart index 7691482f56..7fca5b5ea9 100644 --- a/packages/flutter/lib/src/material/raised_button.dart +++ b/packages/flutter/lib/src/material/raised_button.dart @@ -384,20 +384,20 @@ class RaisedButton extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new ObjectFlagProperty('onPressed', onPressed, ifNull: 'disabled')); - description.add(new DiagnosticsProperty('textColor', textColor, defaultValue: null)); - description.add(new DiagnosticsProperty('disabledTextColor', disabledTextColor, defaultValue: null)); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); - description.add(new DiagnosticsProperty('disabledColor', disabledColor, defaultValue: null)); - description.add(new DiagnosticsProperty('highlightColor', highlightColor, defaultValue: null)); - description.add(new DiagnosticsProperty('splashColor', splashColor, defaultValue: null)); - description.add(new DiagnosticsProperty('colorBrightness', colorBrightness, defaultValue: null)); - description.add(new DiagnosticsProperty('elevation', elevation, defaultValue: null)); - description.add(new DiagnosticsProperty('highlightElevation', highlightElevation, defaultValue: null)); - description.add(new DiagnosticsProperty('disabledElevation', disabledElevation, defaultValue: null)); - description.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); - description.add(new DiagnosticsProperty('shape', shape, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new ObjectFlagProperty('onPressed', onPressed, ifNull: 'disabled')); + properties.add(new DiagnosticsProperty('textColor', textColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('disabledTextColor', disabledTextColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); + properties.add(new DiagnosticsProperty('disabledColor', disabledColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('highlightColor', highlightColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('splashColor', splashColor, defaultValue: null)); + properties.add(new DiagnosticsProperty('colorBrightness', colorBrightness, defaultValue: null)); + properties.add(new DiagnosticsProperty('elevation', elevation, defaultValue: null)); + properties.add(new DiagnosticsProperty('highlightElevation', highlightElevation, defaultValue: null)); + properties.add(new DiagnosticsProperty('disabledElevation', disabledElevation, defaultValue: null)); + properties.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); + properties.add(new DiagnosticsProperty('shape', shape, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/material/slider.dart b/packages/flutter/lib/src/material/slider.dart index 7efad85b53..78cedc0fc8 100644 --- a/packages/flutter/lib/src/material/slider.dart +++ b/packages/flutter/lib/src/material/slider.dart @@ -204,11 +204,11 @@ class Slider extends StatefulWidget { _SliderState createState() => new _SliderState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('value', value)); - description.add(new DoubleProperty('min', min)); - description.add(new DoubleProperty('max', max)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('value', value)); + properties.add(new DoubleProperty('min', min)); + properties.add(new DoubleProperty('max', max)); } } diff --git a/packages/flutter/lib/src/material/slider_theme.dart b/packages/flutter/lib/src/material/slider_theme.dart index 783ef21214..6824bb2c8f 100644 --- a/packages/flutter/lib/src/material/slider_theme.dart +++ b/packages/flutter/lib/src/material/slider_theme.dart @@ -82,7 +82,7 @@ class SliderTheme extends InheritedWidget { } @override - bool updateShouldNotify(SliderTheme old) => data != old.data; + bool updateShouldNotify(SliderTheme oldWidget) => data != oldWidget.data; } /// Describes the conditions under which the value indicator on a [Slider] @@ -476,8 +476,8 @@ class SliderThemeData extends Diagnosticable { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); final ThemeData defaultTheme = new ThemeData.fallback(); final SliderThemeData defaultData = new SliderThemeData.fromPrimaryColors( primaryColor: defaultTheme.primaryColor, @@ -485,22 +485,22 @@ class SliderThemeData extends Diagnosticable { primaryColorLight: defaultTheme.primaryColorLight, valueIndicatorTextStyle: defaultTheme.accentTextTheme.body2, ); - description.add(new DiagnosticsProperty('activeRailColor', activeRailColor, defaultValue: defaultData.activeRailColor)); - description.add(new DiagnosticsProperty('inactiveRailColor', inactiveRailColor, defaultValue: defaultData.inactiveRailColor)); - description.add(new DiagnosticsProperty('disabledActiveRailColor', disabledActiveRailColor, defaultValue: defaultData.disabledActiveRailColor, level: DiagnosticLevel.debug)); - description.add(new DiagnosticsProperty('disabledInactiveRailColor', disabledInactiveRailColor, defaultValue: defaultData.disabledInactiveRailColor, level: DiagnosticLevel.debug)); - description.add(new DiagnosticsProperty('activeTickMarkColor', activeTickMarkColor, defaultValue: defaultData.activeTickMarkColor, level: DiagnosticLevel.debug)); - description.add(new DiagnosticsProperty('inactiveTickMarkColor', inactiveTickMarkColor, defaultValue: defaultData.inactiveTickMarkColor, level: DiagnosticLevel.debug)); - description.add(new DiagnosticsProperty('disabledActiveTickMarkColor', disabledActiveTickMarkColor, defaultValue: defaultData.disabledActiveTickMarkColor, level: DiagnosticLevel.debug)); - description.add(new DiagnosticsProperty('disabledInactiveTickMarkColor', disabledInactiveTickMarkColor, defaultValue: defaultData.disabledInactiveTickMarkColor, level: DiagnosticLevel.debug)); - description.add(new DiagnosticsProperty('thumbColor', thumbColor, defaultValue: defaultData.thumbColor)); - description.add(new DiagnosticsProperty('disabledThumbColor', disabledThumbColor, defaultValue: defaultData.disabledThumbColor, level: DiagnosticLevel.debug)); - description.add(new DiagnosticsProperty('overlayColor', overlayColor, defaultValue: defaultData.overlayColor, level: DiagnosticLevel.debug)); - description.add(new DiagnosticsProperty('valueIndicatorColor', valueIndicatorColor, defaultValue: defaultData.valueIndicatorColor)); - description.add(new DiagnosticsProperty('thumbShape', thumbShape, defaultValue: defaultData.thumbShape, level: DiagnosticLevel.debug)); - description.add(new DiagnosticsProperty('valueIndicatorShape', valueIndicatorShape, defaultValue: defaultData.valueIndicatorShape, level: DiagnosticLevel.debug)); - description.add(new EnumProperty('showValueIndicator', showValueIndicator, defaultValue: defaultData.showValueIndicator)); - description.add(new DiagnosticsProperty('valueIndicatorTextStyle', valueIndicatorTextStyle, defaultValue: defaultData.valueIndicatorTextStyle)); + properties.add(new DiagnosticsProperty('activeRailColor', activeRailColor, defaultValue: defaultData.activeRailColor)); + properties.add(new DiagnosticsProperty('inactiveRailColor', inactiveRailColor, defaultValue: defaultData.inactiveRailColor)); + properties.add(new DiagnosticsProperty('disabledActiveRailColor', disabledActiveRailColor, defaultValue: defaultData.disabledActiveRailColor, level: DiagnosticLevel.debug)); + properties.add(new DiagnosticsProperty('disabledInactiveRailColor', disabledInactiveRailColor, defaultValue: defaultData.disabledInactiveRailColor, level: DiagnosticLevel.debug)); + properties.add(new DiagnosticsProperty('activeTickMarkColor', activeTickMarkColor, defaultValue: defaultData.activeTickMarkColor, level: DiagnosticLevel.debug)); + properties.add(new DiagnosticsProperty('inactiveTickMarkColor', inactiveTickMarkColor, defaultValue: defaultData.inactiveTickMarkColor, level: DiagnosticLevel.debug)); + properties.add(new DiagnosticsProperty('disabledActiveTickMarkColor', disabledActiveTickMarkColor, defaultValue: defaultData.disabledActiveTickMarkColor, level: DiagnosticLevel.debug)); + properties.add(new DiagnosticsProperty('disabledInactiveTickMarkColor', disabledInactiveTickMarkColor, defaultValue: defaultData.disabledInactiveTickMarkColor, level: DiagnosticLevel.debug)); + properties.add(new DiagnosticsProperty('thumbColor', thumbColor, defaultValue: defaultData.thumbColor)); + properties.add(new DiagnosticsProperty('disabledThumbColor', disabledThumbColor, defaultValue: defaultData.disabledThumbColor, level: DiagnosticLevel.debug)); + properties.add(new DiagnosticsProperty('overlayColor', overlayColor, defaultValue: defaultData.overlayColor, level: DiagnosticLevel.debug)); + properties.add(new DiagnosticsProperty('valueIndicatorColor', valueIndicatorColor, defaultValue: defaultData.valueIndicatorColor)); + properties.add(new DiagnosticsProperty('thumbShape', thumbShape, defaultValue: defaultData.thumbShape, level: DiagnosticLevel.debug)); + properties.add(new DiagnosticsProperty('valueIndicatorShape', valueIndicatorShape, defaultValue: defaultData.valueIndicatorShape, level: DiagnosticLevel.debug)); + properties.add(new EnumProperty('showValueIndicator', showValueIndicator, defaultValue: defaultData.showValueIndicator)); + properties.add(new DiagnosticsProperty('valueIndicatorTextStyle', valueIndicatorTextStyle, defaultValue: defaultData.valueIndicatorTextStyle)); } } diff --git a/packages/flutter/lib/src/material/switch.dart b/packages/flutter/lib/src/material/switch.dart index 7b3603b933..208635fcef 100644 --- a/packages/flutter/lib/src/material/switch.dart +++ b/packages/flutter/lib/src/material/switch.dart @@ -116,10 +116,10 @@ class Switch extends StatefulWidget { _SwitchState createState() => new _SwitchState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new FlagProperty('value', value: value, ifTrue: 'on', ifFalse: 'off', showName: true)); - description.add(new ObjectFlagProperty>('onChanged', onChanged, ifNull: 'disabled')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new FlagProperty('value', value: value, ifTrue: 'on', ifFalse: 'off', showName: true)); + properties.add(new ObjectFlagProperty>('onChanged', onChanged, ifNull: 'disabled')); } } diff --git a/packages/flutter/lib/src/material/tabs.dart b/packages/flutter/lib/src/material/tabs.dart index 8fbf6c8110..c82a9ee980 100644 --- a/packages/flutter/lib/src/material/tabs.dart +++ b/packages/flutter/lib/src/material/tabs.dart @@ -121,10 +121,10 @@ class Tab extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new StringProperty('text', text, defaultValue: null)); - description.add(new DiagnosticsProperty('icon', icon, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new StringProperty('text', text, defaultValue: null)); + properties.add(new DiagnosticsProperty('icon', icon, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/material/text_field.dart b/packages/flutter/lib/src/material/text_field.dart index 08a9b11d81..acc246e352 100644 --- a/packages/flutter/lib/src/material/text_field.dart +++ b/packages/flutter/lib/src/material/text_field.dart @@ -265,19 +265,19 @@ class TextField extends StatefulWidget { _TextFieldState createState() => new _TextFieldState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('controller', controller, defaultValue: null)); - description.add(new DiagnosticsProperty('focusNode', focusNode, defaultValue: null)); - description.add(new DiagnosticsProperty('decoration', decoration)); - description.add(new EnumProperty('keyboardType', keyboardType, defaultValue: TextInputType.text)); - description.add(new DiagnosticsProperty('style', style, defaultValue: null)); - description.add(new DiagnosticsProperty('autofocus', autofocus, defaultValue: false)); - description.add(new DiagnosticsProperty('obscureText', obscureText, defaultValue: false)); - description.add(new DiagnosticsProperty('autocorrect', autocorrect, defaultValue: false)); - description.add(new IntProperty('maxLines', maxLines, defaultValue: 1)); - description.add(new IntProperty('maxLength', maxLength, defaultValue: null)); - description.add(new FlagProperty('maxLengthEnforced', value: maxLengthEnforced, ifTrue: 'max length enforced')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('controller', controller, defaultValue: null)); + properties.add(new DiagnosticsProperty('focusNode', focusNode, defaultValue: null)); + properties.add(new DiagnosticsProperty('decoration', decoration)); + properties.add(new EnumProperty('keyboardType', keyboardType, defaultValue: TextInputType.text)); + properties.add(new DiagnosticsProperty('style', style, defaultValue: null)); + properties.add(new DiagnosticsProperty('autofocus', autofocus, defaultValue: false)); + properties.add(new DiagnosticsProperty('obscureText', obscureText, defaultValue: false)); + properties.add(new DiagnosticsProperty('autocorrect', autocorrect, defaultValue: false)); + properties.add(new IntProperty('maxLines', maxLines, defaultValue: 1)); + properties.add(new IntProperty('maxLength', maxLength, defaultValue: null)); + properties.add(new FlagProperty('maxLengthEnforced', value: maxLengthEnforced, ifTrue: 'max length enforced')); } } diff --git a/packages/flutter/lib/src/material/theme.dart b/packages/flutter/lib/src/material/theme.dart index 347137a816..3dbd355b73 100644 --- a/packages/flutter/lib/src/material/theme.dart +++ b/packages/flutter/lib/src/material/theme.dart @@ -150,9 +150,9 @@ class Theme extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('data', data, showName: false)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('data', data, showName: false)); } } diff --git a/packages/flutter/lib/src/material/theme_data.dart b/packages/flutter/lib/src/material/theme_data.dart index cb5dff6207..b8fa42222b 100644 --- a/packages/flutter/lib/src/material/theme_data.dart +++ b/packages/flutter/lib/src/material/theme_data.dart @@ -760,43 +760,43 @@ class ThemeData extends Diagnosticable { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); final ThemeData defaultData = new ThemeData.fallback(); - description.add(new EnumProperty('platform', platform, defaultValue: defaultTargetPlatform)); - description.add(new EnumProperty('brightness', brightness, defaultValue: defaultData.brightness)); - description.add(new DiagnosticsProperty('primaryColor', primaryColor, defaultValue: defaultData.primaryColor)); - description.add(new EnumProperty('primaryColorBrightness', primaryColorBrightness, defaultValue: defaultData.primaryColorBrightness)); - description.add(new DiagnosticsProperty('accentColor', accentColor, defaultValue: defaultData.accentColor)); - description.add(new EnumProperty('accentColorBrightness', accentColorBrightness, defaultValue: defaultData.accentColorBrightness)); - description.add(new DiagnosticsProperty('canvasColor', canvasColor, defaultValue: defaultData.canvasColor)); - description.add(new DiagnosticsProperty('scaffoldBackgroundColor', scaffoldBackgroundColor, defaultValue: defaultData.scaffoldBackgroundColor)); - description.add(new DiagnosticsProperty('bottomAppBarColor', bottomAppBarColor, defaultValue: defaultData.bottomAppBarColor)); - description.add(new DiagnosticsProperty('cardColor', cardColor, defaultValue: defaultData.cardColor)); - description.add(new DiagnosticsProperty('dividerColor', dividerColor, defaultValue: defaultData.dividerColor)); - description.add(new DiagnosticsProperty('highlightColor', highlightColor, defaultValue: defaultData.highlightColor)); - description.add(new DiagnosticsProperty('splashColor', splashColor, defaultValue: defaultData.splashColor)); - description.add(new DiagnosticsProperty('selectedRowColor', selectedRowColor, defaultValue: defaultData.selectedRowColor)); - description.add(new DiagnosticsProperty('unselectedWidgetColor', unselectedWidgetColor, defaultValue: defaultData.unselectedWidgetColor)); - description.add(new DiagnosticsProperty('disabledColor', disabledColor, defaultValue: defaultData.disabledColor)); - description.add(new DiagnosticsProperty('buttonColor', buttonColor, defaultValue: defaultData.buttonColor)); - description.add(new DiagnosticsProperty('secondaryHeaderColor', secondaryHeaderColor, defaultValue: defaultData.secondaryHeaderColor)); - description.add(new DiagnosticsProperty('textSelectionColor', textSelectionColor, defaultValue: defaultData.textSelectionColor)); - description.add(new DiagnosticsProperty('textSelectionHandleColor', textSelectionHandleColor, defaultValue: defaultData.textSelectionHandleColor)); - description.add(new DiagnosticsProperty('backgroundColor', backgroundColor, defaultValue: defaultData.backgroundColor)); - description.add(new DiagnosticsProperty('dialogBackgroundColor', dialogBackgroundColor, defaultValue: defaultData.dialogBackgroundColor)); - description.add(new DiagnosticsProperty('indicatorColor', indicatorColor, defaultValue: defaultData.indicatorColor)); - description.add(new DiagnosticsProperty('hintColor', hintColor, defaultValue: defaultData.hintColor)); - description.add(new DiagnosticsProperty('errorColor', errorColor, defaultValue: defaultData.errorColor)); - description.add(new DiagnosticsProperty('buttonTheme', buttonTheme)); - description.add(new DiagnosticsProperty('textTheme', textTheme)); - description.add(new DiagnosticsProperty('primaryTextTheme', primaryTextTheme)); - description.add(new DiagnosticsProperty('accentTextTheme', accentTextTheme)); - description.add(new DiagnosticsProperty('inputDecorationTheme', inputDecorationTheme)); - description.add(new DiagnosticsProperty('iconTheme', iconTheme)); - description.add(new DiagnosticsProperty('primaryIconTheme', primaryIconTheme)); - description.add(new DiagnosticsProperty('accentIconTheme', accentIconTheme)); - description.add(new DiagnosticsProperty('sliderTheme', sliderTheme)); + properties.add(new EnumProperty('platform', platform, defaultValue: defaultTargetPlatform)); + properties.add(new EnumProperty('brightness', brightness, defaultValue: defaultData.brightness)); + properties.add(new DiagnosticsProperty('primaryColor', primaryColor, defaultValue: defaultData.primaryColor)); + properties.add(new EnumProperty('primaryColorBrightness', primaryColorBrightness, defaultValue: defaultData.primaryColorBrightness)); + properties.add(new DiagnosticsProperty('accentColor', accentColor, defaultValue: defaultData.accentColor)); + properties.add(new EnumProperty('accentColorBrightness', accentColorBrightness, defaultValue: defaultData.accentColorBrightness)); + properties.add(new DiagnosticsProperty('canvasColor', canvasColor, defaultValue: defaultData.canvasColor)); + properties.add(new DiagnosticsProperty('scaffoldBackgroundColor', scaffoldBackgroundColor, defaultValue: defaultData.scaffoldBackgroundColor)); + properties.add(new DiagnosticsProperty('bottomAppBarColor', bottomAppBarColor, defaultValue: defaultData.bottomAppBarColor)); + properties.add(new DiagnosticsProperty('cardColor', cardColor, defaultValue: defaultData.cardColor)); + properties.add(new DiagnosticsProperty('dividerColor', dividerColor, defaultValue: defaultData.dividerColor)); + properties.add(new DiagnosticsProperty('highlightColor', highlightColor, defaultValue: defaultData.highlightColor)); + properties.add(new DiagnosticsProperty('splashColor', splashColor, defaultValue: defaultData.splashColor)); + properties.add(new DiagnosticsProperty('selectedRowColor', selectedRowColor, defaultValue: defaultData.selectedRowColor)); + properties.add(new DiagnosticsProperty('unselectedWidgetColor', unselectedWidgetColor, defaultValue: defaultData.unselectedWidgetColor)); + properties.add(new DiagnosticsProperty('disabledColor', disabledColor, defaultValue: defaultData.disabledColor)); + properties.add(new DiagnosticsProperty('buttonColor', buttonColor, defaultValue: defaultData.buttonColor)); + properties.add(new DiagnosticsProperty('secondaryHeaderColor', secondaryHeaderColor, defaultValue: defaultData.secondaryHeaderColor)); + properties.add(new DiagnosticsProperty('textSelectionColor', textSelectionColor, defaultValue: defaultData.textSelectionColor)); + properties.add(new DiagnosticsProperty('textSelectionHandleColor', textSelectionHandleColor, defaultValue: defaultData.textSelectionHandleColor)); + properties.add(new DiagnosticsProperty('backgroundColor', backgroundColor, defaultValue: defaultData.backgroundColor)); + properties.add(new DiagnosticsProperty('dialogBackgroundColor', dialogBackgroundColor, defaultValue: defaultData.dialogBackgroundColor)); + properties.add(new DiagnosticsProperty('indicatorColor', indicatorColor, defaultValue: defaultData.indicatorColor)); + properties.add(new DiagnosticsProperty('hintColor', hintColor, defaultValue: defaultData.hintColor)); + properties.add(new DiagnosticsProperty('errorColor', errorColor, defaultValue: defaultData.errorColor)); + properties.add(new DiagnosticsProperty('buttonTheme', buttonTheme)); + properties.add(new DiagnosticsProperty('textTheme', textTheme)); + properties.add(new DiagnosticsProperty('primaryTextTheme', primaryTextTheme)); + properties.add(new DiagnosticsProperty('accentTextTheme', accentTextTheme)); + properties.add(new DiagnosticsProperty('inputDecorationTheme', inputDecorationTheme)); + properties.add(new DiagnosticsProperty('iconTheme', iconTheme)); + properties.add(new DiagnosticsProperty('primaryIconTheme', primaryIconTheme)); + properties.add(new DiagnosticsProperty('accentIconTheme', accentIconTheme)); + properties.add(new DiagnosticsProperty('sliderTheme', sliderTheme)); } } diff --git a/packages/flutter/lib/src/material/toggleable.dart b/packages/flutter/lib/src/material/toggleable.dart index 8c0bdefdb2..ae04cecd16 100644 --- a/packages/flutter/lib/src/material/toggleable.dart +++ b/packages/flutter/lib/src/material/toggleable.dart @@ -336,9 +336,9 @@ abstract class RenderToggleable extends RenderConstrainedBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new FlagProperty('value', value: value, ifTrue: 'checked', ifFalse: 'unchecked', showName: true)); - description.add(new FlagProperty('isInteractive', value: isInteractive, ifTrue: 'enabled', ifFalse: 'disabled', defaultValue: true)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new FlagProperty('value', value: value, ifTrue: 'checked', ifFalse: 'unchecked', showName: true)); + properties.add(new FlagProperty('isInteractive', value: isInteractive, ifTrue: 'enabled', ifFalse: 'disabled', defaultValue: true)); } } diff --git a/packages/flutter/lib/src/material/tooltip.dart b/packages/flutter/lib/src/material/tooltip.dart index 52900a1ee7..85edc3a5cb 100644 --- a/packages/flutter/lib/src/material/tooltip.dart +++ b/packages/flutter/lib/src/material/tooltip.dart @@ -92,11 +92,11 @@ class Tooltip extends StatefulWidget { _TooltipState createState() => new _TooltipState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new StringProperty('message', message, showName: false)); - description.add(new DoubleProperty('vertical offset', verticalOffset)); - description.add(new FlagProperty('position', value: preferBelow, ifTrue: 'below', ifFalse: 'above', showName: true)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new StringProperty('message', message, showName: false)); + properties.add(new DoubleProperty('vertical offset', verticalOffset)); + properties.add(new FlagProperty('position', value: preferBelow, ifTrue: 'below', ifFalse: 'above', showName: true)); } } diff --git a/packages/flutter/lib/src/material/typography.dart b/packages/flutter/lib/src/material/typography.dart index 80b0f325d5..bf98fd1bee 100644 --- a/packages/flutter/lib/src/material/typography.dart +++ b/packages/flutter/lib/src/material/typography.dart @@ -355,30 +355,30 @@ class TextTheme extends Diagnosticable { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); final TextTheme defaultTheme = new Typography(platform: defaultTargetPlatform).black; - description.add(new DiagnosticsProperty('display4', display4, + properties.add(new DiagnosticsProperty('display4', display4, defaultValue: defaultTheme.display4)); - description.add(new DiagnosticsProperty('display3', display3, + properties.add(new DiagnosticsProperty('display3', display3, defaultValue: defaultTheme.display3)); - description.add(new DiagnosticsProperty('display2', display2, + properties.add(new DiagnosticsProperty('display2', display2, defaultValue: defaultTheme.display2)); - description.add(new DiagnosticsProperty('display1', display1, + properties.add(new DiagnosticsProperty('display1', display1, defaultValue: defaultTheme.display1)); - description.add(new DiagnosticsProperty('headline', headline, + properties.add(new DiagnosticsProperty('headline', headline, defaultValue: defaultTheme.headline)); - description + properties .add(new DiagnosticsProperty('title', title, defaultValue: defaultTheme.title)); - description.add( + properties.add( new DiagnosticsProperty('subhead', subhead, defaultValue: defaultTheme.subhead)); - description + properties .add(new DiagnosticsProperty('body2', body2, defaultValue: defaultTheme.body2)); - description + properties .add(new DiagnosticsProperty('body1', body1, defaultValue: defaultTheme.body1)); - description.add( + properties.add( new DiagnosticsProperty('caption', caption, defaultValue: defaultTheme.caption)); - description.add( + properties.add( new DiagnosticsProperty('button', button, defaultValue: defaultTheme.button)); } } diff --git a/packages/flutter/lib/src/rendering/box.dart b/packages/flutter/lib/src/rendering/box.dart index 6ce6fdd0b0..d1143f6bda 100644 --- a/packages/flutter/lib/src/rendering/box.dart +++ b/packages/flutter/lib/src/rendering/box.dart @@ -2105,9 +2105,9 @@ abstract class RenderBox extends RenderObject { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('size', _size, missingIfNull: true)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('size', _size, missingIfNull: true)); } } diff --git a/packages/flutter/lib/src/rendering/editable.dart b/packages/flutter/lib/src/rendering/editable.dart index 2e62705d47..72327ec4fe 100644 --- a/packages/flutter/lib/src/rendering/editable.dart +++ b/packages/flutter/lib/src/rendering/editable.dart @@ -742,15 +742,15 @@ class RenderEditable extends RenderBox { Rect describeApproximatePaintClip(RenderObject child) => _hasVisualOverflow ? Offset.zero & size : null; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('cursorColor', cursorColor)); - description.add(new DiagnosticsProperty>('showCursor', showCursor)); - description.add(new IntProperty('maxLines', maxLines)); - description.add(new DiagnosticsProperty('selectionColor', selectionColor)); - description.add(new DoubleProperty('textScaleFactor', textScaleFactor)); - description.add(new DiagnosticsProperty('selection', selection)); - description.add(new DiagnosticsProperty('offset', offset)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('cursorColor', cursorColor)); + properties.add(new DiagnosticsProperty>('showCursor', showCursor)); + properties.add(new IntProperty('maxLines', maxLines)); + properties.add(new DiagnosticsProperty('selectionColor', selectionColor)); + properties.add(new DoubleProperty('textScaleFactor', textScaleFactor)); + properties.add(new DiagnosticsProperty('selection', selection)); + properties.add(new DiagnosticsProperty('offset', offset)); } @override diff --git a/packages/flutter/lib/src/rendering/flex.dart b/packages/flutter/lib/src/rendering/flex.dart index 30d868c466..f05636bd74 100644 --- a/packages/flutter/lib/src/rendering/flex.dart +++ b/packages/flutter/lib/src/rendering/flex.dart @@ -985,14 +985,14 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin('direction', direction)); - description.add(new EnumProperty('mainAxisAlignment', mainAxisAlignment)); - description.add(new EnumProperty('mainAxisSize', mainAxisSize)); - description.add(new EnumProperty('crossAxisAlignment', crossAxisAlignment)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new EnumProperty('verticalDirection', verticalDirection, defaultValue: null)); - description.add(new EnumProperty('textBaseline', textBaseline, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('direction', direction)); + properties.add(new EnumProperty('mainAxisAlignment', mainAxisAlignment)); + properties.add(new EnumProperty('mainAxisSize', mainAxisSize)); + properties.add(new EnumProperty('crossAxisAlignment', crossAxisAlignment)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new EnumProperty('verticalDirection', verticalDirection, defaultValue: null)); + properties.add(new EnumProperty('textBaseline', textBaseline, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/rendering/image.dart b/packages/flutter/lib/src/rendering/image.dart index 5af07a0cd4..0dbdf4b548 100644 --- a/packages/flutter/lib/src/rendering/image.dart +++ b/packages/flutter/lib/src/rendering/image.dart @@ -334,19 +334,19 @@ class RenderImage extends RenderBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('image', image)); - description.add(new DoubleProperty('width', width, defaultValue: null)); - description.add(new DoubleProperty('height', height, defaultValue: null)); - description.add(new DoubleProperty('scale', scale, defaultValue: 1.0)); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); - description.add(new EnumProperty('colorBlendMode', colorBlendMode, defaultValue: null)); - description.add(new EnumProperty('fit', fit, defaultValue: null)); - description.add(new DiagnosticsProperty('alignment', alignment, defaultValue: null)); - description.add(new EnumProperty('repeat', repeat, defaultValue: ImageRepeat.noRepeat)); - description.add(new DiagnosticsProperty('centerSlice', centerSlice, defaultValue: null)); - description.add(new FlagProperty('matchTextDirection', value: matchTextDirection, ifTrue: 'match text direction')); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('image', image)); + properties.add(new DoubleProperty('width', width, defaultValue: null)); + properties.add(new DoubleProperty('height', height, defaultValue: null)); + properties.add(new DoubleProperty('scale', scale, defaultValue: 1.0)); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); + properties.add(new EnumProperty('colorBlendMode', colorBlendMode, defaultValue: null)); + properties.add(new EnumProperty('fit', fit, defaultValue: null)); + properties.add(new DiagnosticsProperty('alignment', alignment, defaultValue: null)); + properties.add(new EnumProperty('repeat', repeat, defaultValue: ImageRepeat.noRepeat)); + properties.add(new DiagnosticsProperty('centerSlice', centerSlice, defaultValue: null)); + properties.add(new FlagProperty('matchTextDirection', value: matchTextDirection, ifTrue: 'match text direction')); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/rendering/layer.dart b/packages/flutter/lib/src/rendering/layer.dart index 9a834489c8..01c88ad8c5 100644 --- a/packages/flutter/lib/src/rendering/layer.dart +++ b/packages/flutter/lib/src/rendering/layer.dart @@ -104,10 +104,10 @@ abstract class Layer extends AbstractNode with DiagnosticableTreeMixin { String toStringShort() => '${super.toStringShort()}${ owner == null ? " DETACHED" : ""}'; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('owner', owner, level: parent != null ? DiagnosticLevel.hidden : DiagnosticLevel.info, defaultValue: null)); - description.add(new DiagnosticsProperty('creator', debugCreator, defaultValue: null, level: DiagnosticLevel.debug)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('owner', owner, level: parent != null ? DiagnosticLevel.hidden : DiagnosticLevel.info, defaultValue: null)); + properties.add(new DiagnosticsProperty('creator', debugCreator, defaultValue: null, level: DiagnosticLevel.debug)); } } @@ -161,9 +161,9 @@ class PictureLayer extends Layer { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('paint bounds', canvasBounds)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('paint bounds', canvasBounds)); } } @@ -511,9 +511,9 @@ class OffsetLayer extends ContainerLayer { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('offset', offset)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('offset', offset)); } } @@ -541,9 +541,9 @@ class ClipRectLayer extends ContainerLayer { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('clipRect', clipRect)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('clipRect', clipRect)); } } @@ -571,9 +571,9 @@ class ClipRRectLayer extends ContainerLayer { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('clipRRect', clipRRect)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('clipRRect', clipRRect)); } } @@ -647,9 +647,9 @@ class TransformLayer extends OffsetLayer { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new TransformProperty('transform', transform)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new TransformProperty('transform', transform)); } } @@ -680,9 +680,9 @@ class OpacityLayer extends ContainerLayer { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new IntProperty('alpha', alpha)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new IntProperty('alpha', alpha)); } } @@ -720,11 +720,11 @@ class ShaderMaskLayer extends ContainerLayer { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('shader', shader)); - description.add(new DiagnosticsProperty('maskRect', maskRect)); - description.add(new DiagnosticsProperty('blendMode', blendMode)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('shader', shader)); + properties.add(new DiagnosticsProperty('maskRect', maskRect)); + properties.add(new DiagnosticsProperty('blendMode', blendMode)); } } @@ -800,10 +800,10 @@ class PhysicalModelLayer extends ContainerLayer { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('elevation', elevation)); - description.add(new DiagnosticsProperty('color', color)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('elevation', elevation)); + properties.add(new DiagnosticsProperty('color', color)); } } @@ -908,10 +908,10 @@ class LeaderLayer extends ContainerLayer { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('offset', offset)); - description.add(new DiagnosticsProperty('link', link)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('offset', offset)); + properties.add(new DiagnosticsProperty('link', link)); } } @@ -1097,9 +1097,9 @@ class FollowerLayer extends ContainerLayer { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('link', link)); - description.add(new TransformProperty('transform', getLastTransform(), defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('link', link)); + properties.add(new TransformProperty('transform', getLastTransform(), defaultValue: null)); } } diff --git a/packages/flutter/lib/src/rendering/list_body.dart b/packages/flutter/lib/src/rendering/list_body.dart index 76fc6dc566..34c2fbfc23 100644 --- a/packages/flutter/lib/src/rendering/list_body.dart +++ b/packages/flutter/lib/src/rendering/list_body.dart @@ -179,9 +179,9 @@ class RenderListBody extends RenderBox } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('axisDirection', axisDirection)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('axisDirection', axisDirection)); } double _getIntrinsicCrossAxis(_ChildSizingFunction childSize) { diff --git a/packages/flutter/lib/src/rendering/object.dart b/packages/flutter/lib/src/rendering/object.dart index c1f47c87b3..d654366662 100644 --- a/packages/flutter/lib/src/rendering/object.dart +++ b/packages/flutter/lib/src/rendering/object.dart @@ -2504,19 +2504,19 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im @protected @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - description.add(new DiagnosticsProperty('creator', debugCreator, defaultValue: null, level: DiagnosticLevel.debug)); - description.add(new DiagnosticsProperty('parentData', parentData, tooltip: _debugCanParentUseSize == true ? 'can use size' : null, missingIfNull: true)); - description.add(new DiagnosticsProperty('constraints', constraints, missingIfNull: true)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties.add(new DiagnosticsProperty('creator', debugCreator, defaultValue: null, level: DiagnosticLevel.debug)); + properties.add(new DiagnosticsProperty('parentData', parentData, tooltip: _debugCanParentUseSize == true ? 'can use size' : null, missingIfNull: true)); + properties.add(new DiagnosticsProperty('constraints', constraints, missingIfNull: true)); // don't access it via the "layer" getter since that's only valid when we don't need paint - description.add(new DiagnosticsProperty('layer', _layer, defaultValue: null)); - description.add(new DiagnosticsProperty('semantics node', _semantics, defaultValue: null)); - description.add(new FlagProperty( + properties.add(new DiagnosticsProperty('layer', _layer, defaultValue: null)); + properties.add(new DiagnosticsProperty('semantics node', _semantics, defaultValue: null)); + properties.add(new FlagProperty( 'isBlockingSemanticsOfPreviouslyPaintedNodes', value: _semanticsConfiguration.isBlockingSemanticsOfPreviouslyPaintedNodes, ifTrue: 'blocks semantics of earlier render objects below the common boundary', )); - description.add(new FlagProperty('isSemanticBoundary', value: _semanticsConfiguration.isSemanticBoundary, ifTrue: 'semantic boundary')); + properties.add(new FlagProperty('isSemanticBoundary', value: _semanticsConfiguration.isSemanticBoundary, ifTrue: 'semantic boundary')); } @override diff --git a/packages/flutter/lib/src/rendering/paragraph.dart b/packages/flutter/lib/src/rendering/paragraph.dart index 435321e6d0..2d88cd0e2b 100644 --- a/packages/flutter/lib/src/rendering/paragraph.dart +++ b/packages/flutter/lib/src/rendering/paragraph.dart @@ -431,13 +431,13 @@ class RenderParagraph extends RenderBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('textAlign', textAlign)); - description.add(new EnumProperty('textDirection', textDirection)); - description.add(new FlagProperty('softWrap', value: softWrap, ifTrue: 'wrapping at box width', ifFalse: 'no wrapping except at line break characters', showName: true)); - description.add(new EnumProperty('overflow', overflow)); - description.add(new DoubleProperty('textScaleFactor', textScaleFactor, defaultValue: 1.0)); - description.add(new IntProperty('maxLines', maxLines, ifNull: 'unlimited')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('textAlign', textAlign)); + properties.add(new EnumProperty('textDirection', textDirection)); + properties.add(new FlagProperty('softWrap', value: softWrap, ifTrue: 'wrapping at box width', ifFalse: 'no wrapping except at line break characters', showName: true)); + properties.add(new EnumProperty('overflow', overflow)); + properties.add(new DoubleProperty('textScaleFactor', textScaleFactor, defaultValue: 1.0)); + properties.add(new IntProperty('maxLines', maxLines, ifNull: 'unlimited')); } } diff --git a/packages/flutter/lib/src/rendering/proxy_box.dart b/packages/flutter/lib/src/rendering/proxy_box.dart index 67ae971549..eb74c2cf04 100644 --- a/packages/flutter/lib/src/rendering/proxy_box.dart +++ b/packages/flutter/lib/src/rendering/proxy_box.dart @@ -171,9 +171,9 @@ abstract class RenderProxyBoxWithHitTestBehavior extends RenderProxyBox { bool hitTestSelf(Offset position) => behavior == HitTestBehavior.opaque; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('behavior', behavior, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('behavior', behavior, defaultValue: null)); } } @@ -276,9 +276,9 @@ class RenderConstrainedBox extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('additionalConstraints', additionalConstraints)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('additionalConstraints', additionalConstraints)); } } @@ -352,10 +352,10 @@ class RenderLimitedBox extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('maxWidth', maxWidth, defaultValue: double.infinity)); - description.add(new DoubleProperty('maxHeight', maxHeight, defaultValue: double.infinity)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('maxWidth', maxWidth, defaultValue: double.infinity)); + properties.add(new DoubleProperty('maxHeight', maxHeight, defaultValue: double.infinity)); } } @@ -517,9 +517,9 @@ class RenderAspectRatio extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('aspectRatio', aspectRatio)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('aspectRatio', aspectRatio)); } } @@ -630,10 +630,10 @@ class RenderIntrinsicWidth extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('stepWidth', stepWidth)); - description.add(new DoubleProperty('stepHeight', stepHeight)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('stepWidth', stepWidth)); + properties.add(new DoubleProperty('stepHeight', stepHeight)); } } @@ -772,9 +772,9 @@ class RenderOpacity extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('opacity', opacity)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('opacity', opacity)); } } @@ -865,9 +865,9 @@ class RenderAnimatedOpacity extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty>('opacity', opacity)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty>('opacity', opacity)); } } @@ -1872,10 +1872,10 @@ class RenderDecoratedBox extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(_decoration.toDiagnosticsNode(name: 'decoration')); - description.add(new DiagnosticsProperty('configuration', configuration)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(_decoration.toDiagnosticsNode(name: 'decoration')); + properties.add(new DiagnosticsProperty('configuration', configuration)); } } @@ -2066,13 +2066,13 @@ class RenderTransform extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new TransformProperty('transform matrix', _transform)); - description.add(new DiagnosticsProperty('origin', origin)); - description.add(new DiagnosticsProperty('alignment', alignment)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new DiagnosticsProperty('transformHitTests', transformHitTests)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new TransformProperty('transform matrix', _transform)); + properties.add(new DiagnosticsProperty('origin', origin)); + properties.add(new DiagnosticsProperty('alignment', alignment)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new DiagnosticsProperty('transformHitTests', transformHitTests)); } } @@ -2243,11 +2243,11 @@ class RenderFittedBox extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('fit', fit)); - description.add(new DiagnosticsProperty('alignment', alignment)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('fit', fit)); + properties.add(new DiagnosticsProperty('alignment', alignment)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); } } @@ -2326,10 +2326,10 @@ class RenderFractionalTranslation extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('translation', translation)); - description.add(new DiagnosticsProperty('transformHitTests', transformHitTests)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('translation', translation)); + properties.add(new DiagnosticsProperty('transformHitTests', transformHitTests)); } } @@ -2404,8 +2404,8 @@ class RenderPointerListener extends RenderProxyBoxWithHitTestBehavior { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); final List listeners = []; if (onPointerDown != null) listeners.add('down'); @@ -2417,7 +2417,7 @@ class RenderPointerListener extends RenderProxyBoxWithHitTestBehavior { listeners.add('cancel'); if (listeners.isEmpty) listeners.add(''); - description.add(new IterableProperty('listeners', listeners)); + properties.add(new IterableProperty('listeners', listeners)); // TODO(jacobr): add raw listeners to the diagnostics data. } } @@ -2508,13 +2508,13 @@ class RenderRepaintBoundary extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); bool inReleaseMode = true; assert(() { inReleaseMode = false; if (debugSymmetricPaintCount + debugAsymmetricPaintCount == 0) { - description.add(new MessageProperty('usefulness ratio', 'no metrics collected yet (never painted)')); + properties.add(new MessageProperty('usefulness ratio', 'no metrics collected yet (never painted)')); } else { final double fraction = debugAsymmetricPaintCount / (debugSymmetricPaintCount + debugAsymmetricPaintCount); String diagnosis; @@ -2533,13 +2533,13 @@ class RenderRepaintBoundary extends RenderProxyBox { } else { diagnosis = 'this repaint boundary is not very effective and should probably be removed'; } - description.add(new PercentProperty('metrics', fraction, unit: 'useful', tooltip: '$debugSymmetricPaintCount bad vs $debugAsymmetricPaintCount good')); - description.add(new MessageProperty('diagnosis', diagnosis)); + properties.add(new PercentProperty('metrics', fraction, unit: 'useful', tooltip: '$debugSymmetricPaintCount bad vs $debugAsymmetricPaintCount good')); + properties.add(new MessageProperty('diagnosis', diagnosis)); } return true; }()); if (inReleaseMode) - description.add(new DiagnosticsNode.message('(run in checked mode to collect repaint boundary statistics)')); + properties.add(new DiagnosticsNode.message('(run in checked mode to collect repaint boundary statistics)')); } } @@ -2619,10 +2619,10 @@ class RenderIgnorePointer extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('ignoring', ignoring)); - description.add( + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('ignoring', ignoring)); + properties.add( new DiagnosticsProperty( 'ignoringSemantics', _effectiveIgnoringSemantics, @@ -2734,9 +2734,9 @@ class RenderOffstage extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('offstage', offstage)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('offstage', offstage)); } @override @@ -2787,9 +2787,9 @@ class RenderAbsorbPointer extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('absorbing', absorbing)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('absorbing', absorbing)); } } @@ -2813,9 +2813,9 @@ class RenderMetaData extends RenderProxyBoxWithHitTestBehavior { dynamic metaData; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('metaData', metaData)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('metaData', metaData)); } } @@ -2983,8 +2983,8 @@ class RenderSemanticsGestureHandler extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); final List gestures = []; if (onTap != null) gestures.add('tap'); @@ -2996,7 +2996,7 @@ class RenderSemanticsGestureHandler extends RenderProxyBox { gestures.add('vertical scroll'); if (gestures.isEmpty) gestures.add(''); - description.add(new IterableProperty('gestures', gestures)); + properties.add(new IterableProperty('gestures', gestures)); } } @@ -3814,9 +3814,9 @@ class RenderBlockSemantics extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('blocking', blocking)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('blocking', blocking)); } } @@ -3875,9 +3875,9 @@ class RenderExcludeSemantics extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('excluding', excluding)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('excluding', excluding)); } } @@ -3923,9 +3923,9 @@ class RenderLeaderLayer extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('link', link)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('link', link)); } } @@ -4068,11 +4068,11 @@ class RenderFollowerLayer extends RenderProxyBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('link', link)); - description.add(new DiagnosticsProperty('showWhenUnlinked', showWhenUnlinked)); - description.add(new DiagnosticsProperty('offset', offset)); - description.add(new TransformProperty('current transform matrix', getCurrentTransform())); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('link', link)); + properties.add(new DiagnosticsProperty('showWhenUnlinked', showWhenUnlinked)); + properties.add(new DiagnosticsProperty('offset', offset)); + properties.add(new TransformProperty('current transform matrix', getCurrentTransform())); } } diff --git a/packages/flutter/lib/src/rendering/shifted_box.dart b/packages/flutter/lib/src/rendering/shifted_box.dart index af26d4c276..700453646a 100644 --- a/packages/flutter/lib/src/rendering/shifted_box.dart +++ b/packages/flutter/lib/src/rendering/shifted_box.dart @@ -216,10 +216,10 @@ class RenderPadding extends RenderShiftedBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('padding', padding)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('padding', padding)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); } } @@ -315,10 +315,10 @@ abstract class RenderAligningShiftedBox extends RenderShiftedBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); } } @@ -447,10 +447,10 @@ class RenderPositionedBox extends RenderAligningShiftedBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('widthFactor', _widthFactor, ifNull: 'expand')); - description.add(new DoubleProperty('heightFactor', _heightFactor, ifNull: 'expand')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('widthFactor', _widthFactor, ifNull: 'expand')); + properties.add(new DoubleProperty('heightFactor', _heightFactor, ifNull: 'expand')); } } @@ -571,12 +571,12 @@ class RenderConstrainedOverflowBox extends RenderAligningShiftedBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('minWidth', minWidth, ifNull: 'use parent minWidth constraint')); - description.add(new DoubleProperty('maxWidth', maxWidth, ifNull: 'use parent maxWidth constraint')); - description.add(new DoubleProperty('minHeight', minHeight, ifNull: 'use parent minHeight constraint')); - description.add(new DoubleProperty('maxHeight', maxHeight, ifNull: 'use parent maxHeight constraint')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('minWidth', minWidth, ifNull: 'use parent minWidth constraint')); + properties.add(new DoubleProperty('maxWidth', maxWidth, ifNull: 'use parent maxWidth constraint')); + properties.add(new DoubleProperty('minHeight', minHeight, ifNull: 'use parent minHeight constraint')); + properties.add(new DoubleProperty('maxHeight', maxHeight, ifNull: 'use parent maxHeight constraint')); } } @@ -925,10 +925,10 @@ class RenderFractionallySizedOverflowBox extends RenderAligningShiftedBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('widthFactor', _widthFactor, ifNull: 'pass-through')); - description.add(new DoubleProperty('heightFactor', _heightFactor, ifNull: 'pass-through')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('widthFactor', _widthFactor, ifNull: 'pass-through')); + properties.add(new DoubleProperty('heightFactor', _heightFactor, ifNull: 'pass-through')); } } @@ -1181,9 +1181,9 @@ class RenderBaseline extends RenderShiftedBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('baseline', baseline)); - description.add(new EnumProperty('baselineType', baselineType)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('baseline', baseline)); + properties.add(new EnumProperty('baselineType', baselineType)); } } diff --git a/packages/flutter/lib/src/rendering/sliver.dart b/packages/flutter/lib/src/rendering/sliver.dart index a81fc2a375..68e29473cf 100644 --- a/packages/flutter/lib/src/rendering/sliver.dart +++ b/packages/flutter/lib/src/rendering/sliver.dart @@ -1265,9 +1265,9 @@ abstract class RenderSliver extends RenderObject { void handleEvent(PointerEvent event, SliverHitTestEntry entry) { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('geometry', geometry)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('geometry', geometry)); } } diff --git a/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart b/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart index e35f67783b..86630741f5 100644 --- a/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart +++ b/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart @@ -560,9 +560,9 @@ abstract class RenderSliverMultiBoxAdaptor extends RenderSliver } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsNode.message(firstChild != null ? 'currently live children: ${indexOf(firstChild)} to ${indexOf(lastChild)}' : 'no children current live')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsNode.message(firstChild != null ? 'currently live children: ${indexOf(firstChild)} to ${indexOf(lastChild)}' : 'no children current live')); } /// Asserts that the reified child list is not empty and has a contiguous diff --git a/packages/flutter/lib/src/rendering/sliver_padding.dart b/packages/flutter/lib/src/rendering/sliver_padding.dart index 00716b205f..0220715b92 100644 --- a/packages/flutter/lib/src/rendering/sliver_padding.dart +++ b/packages/flutter/lib/src/rendering/sliver_padding.dart @@ -326,9 +326,9 @@ class RenderSliverPadding extends RenderSliver with RenderObjectWithChildMixin('padding', padding)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('padding', padding)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/rendering/sliver_persistent_header.dart b/packages/flutter/lib/src/rendering/sliver_persistent_header.dart index b67841305f..b6ac9a6287 100644 --- a/packages/flutter/lib/src/rendering/sliver_persistent_header.dart +++ b/packages/flutter/lib/src/rendering/sliver_persistent_header.dart @@ -229,10 +229,10 @@ abstract class RenderSliverPersistentHeader extends RenderSliver with RenderObje } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty.lazy('maxExtent', () => maxExtent)); - description.add(new DoubleProperty.lazy('child position', () => childMainAxisPosition(child))); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty.lazy('maxExtent', () => maxExtent)); + properties.add(new DoubleProperty.lazy('child position', () => childMainAxisPosition(child))); } } @@ -488,9 +488,9 @@ abstract class RenderSliverFloatingPersistentHeader extends RenderSliverPersiste } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('effective scroll offset', _effectiveScrollOffset)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('effective scroll offset', _effectiveScrollOffset)); } } diff --git a/packages/flutter/lib/src/rendering/stack.dart b/packages/flutter/lib/src/rendering/stack.dart index 6e9b108510..34121bf9d8 100644 --- a/packages/flutter/lib/src/rendering/stack.dart +++ b/packages/flutter/lib/src/rendering/stack.dart @@ -606,12 +606,12 @@ class RenderStack extends RenderBox Rect describeApproximatePaintClip(RenderObject child) => _hasVisualOverflow ? Offset.zero & size : null; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment)); - description.add(new EnumProperty('textDirection', textDirection)); - description.add(new EnumProperty('fit', fit)); - description.add(new EnumProperty('overflow', overflow)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment)); + properties.add(new EnumProperty('textDirection', textDirection)); + properties.add(new EnumProperty('fit', fit)); + properties.add(new EnumProperty('overflow', overflow)); } } @@ -685,8 +685,8 @@ class RenderIndexedStack extends RenderStack { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new IntProperty('index', index)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new IntProperty('index', index)); } } diff --git a/packages/flutter/lib/src/rendering/table.dart b/packages/flutter/lib/src/rendering/table.dart index 6dc20c4470..6261b893d9 100644 --- a/packages/flutter/lib/src/rendering/table.dart +++ b/packages/flutter/lib/src/rendering/table.dart @@ -1160,14 +1160,14 @@ class RenderTable extends RenderBox { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('border', border, defaultValue: null)); - description.add(new DiagnosticsProperty>('specified column widths', _columnWidths, level: _columnWidths.isEmpty ? DiagnosticLevel.hidden : DiagnosticLevel.info)); - description.add(new DiagnosticsProperty('default column width', defaultColumnWidth)); - description.add(new MessageProperty('table size', '$columns\u00D7$rows')); - description.add(new IterableProperty('column offsets', _columnLefts, ifNull: 'unknown')); - description.add(new IterableProperty('row offsets', _rowTops, ifNull: 'unknown')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('border', border, defaultValue: null)); + properties.add(new DiagnosticsProperty>('specified column widths', _columnWidths, level: _columnWidths.isEmpty ? DiagnosticLevel.hidden : DiagnosticLevel.info)); + properties.add(new DiagnosticsProperty('default column width', defaultColumnWidth)); + properties.add(new MessageProperty('table size', '$columns\u00D7$rows')); + properties.add(new IterableProperty('column offsets', _columnLefts, ifNull: 'unknown')); + properties.add(new IterableProperty('row offsets', _rowTops, ifNull: 'unknown')); } @override diff --git a/packages/flutter/lib/src/rendering/view.dart b/packages/flutter/lib/src/rendering/view.dart index b2b363a91b..24256b39c5 100644 --- a/packages/flutter/lib/src/rendering/view.dart +++ b/packages/flutter/lib/src/rendering/view.dart @@ -194,18 +194,18 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { + void debugFillProperties(DiagnosticPropertiesBuilder properties) { // call to ${super.debugFillProperties(description)} is omitted because the // root superclasses don't include any interesting information for this // class assert(() { - description.add(new DiagnosticsNode.message('debug mode enabled - ${Platform.operatingSystem}')); + properties.add(new DiagnosticsNode.message('debug mode enabled - ${Platform.operatingSystem}')); return true; }()); - description.add(new DiagnosticsProperty('window size', ui.window.physicalSize, tooltip: 'in physical pixels')); - description.add(new DoubleProperty('device pixel ratio', ui.window.devicePixelRatio, tooltip: 'physical pixels per logical pixel')); - description.add(new DiagnosticsProperty('configuration', configuration, tooltip: 'in logical pixels')); + properties.add(new DiagnosticsProperty('window size', ui.window.physicalSize, tooltip: 'in physical pixels')); + properties.add(new DoubleProperty('device pixel ratio', ui.window.devicePixelRatio, tooltip: 'physical pixels per logical pixel')); + properties.add(new DiagnosticsProperty('configuration', configuration, tooltip: 'in logical pixels')); if (ui.window.semanticsEnabled) - description.add(new DiagnosticsNode.message('semantics enabled')); + properties.add(new DiagnosticsNode.message('semantics enabled')); } } diff --git a/packages/flutter/lib/src/rendering/viewport.dart b/packages/flutter/lib/src/rendering/viewport.dart index 999cd70bfb..b236860501 100644 --- a/packages/flutter/lib/src/rendering/viewport.dart +++ b/packages/flutter/lib/src/rendering/viewport.dart @@ -533,11 +533,11 @@ abstract class RenderViewportBase('axisDirection', axisDirection)); - description.add(new EnumProperty('crossAxisDirection', crossAxisDirection)); - description.add(new DiagnosticsProperty('offset', offset)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('axisDirection', axisDirection)); + properties.add(new EnumProperty('crossAxisDirection', crossAxisDirection)); + properties.add(new DiagnosticsProperty('offset', offset)); } @override @@ -1180,9 +1180,9 @@ class RenderViewport extends RenderViewportBase('direction', direction)); - description.add(new EnumProperty('alignment', alignment)); - description.add(new DoubleProperty('spacing', spacing)); - description.add(new EnumProperty('runAlignment', runAlignment)); - description.add(new DoubleProperty('runSpacing', runSpacing)); - description.add(new DoubleProperty('crossAxisAlignment', runSpacing)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new EnumProperty('verticalDirection', verticalDirection, defaultValue: VerticalDirection.down)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('direction', direction)); + properties.add(new EnumProperty('alignment', alignment)); + properties.add(new DoubleProperty('spacing', spacing)); + properties.add(new EnumProperty('runAlignment', runAlignment)); + properties.add(new DoubleProperty('runSpacing', runSpacing)); + properties.add(new DoubleProperty('crossAxisAlignment', runSpacing)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new EnumProperty('verticalDirection', verticalDirection, defaultValue: VerticalDirection.down)); } } diff --git a/packages/flutter/lib/src/semantics/semantics.dart b/packages/flutter/lib/src/semantics/semantics.dart index e2ea34c134..def2db139c 100644 --- a/packages/flutter/lib/src/semantics/semantics.dart +++ b/packages/flutter/lib/src/semantics/semantics.dart @@ -670,15 +670,15 @@ class SemanticsProperties extends DiagnosticableTree { final VoidCallback onDidLoseAccessibilityFocus; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('checked', checked, defaultValue: null)); - description.add(new DiagnosticsProperty('selected', selected, defaultValue: null)); - description.add(new StringProperty('label', label, defaultValue: '')); - description.add(new StringProperty('value', value)); - description.add(new StringProperty('hint', hint)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new DiagnosticsProperty('sortKey', sortKey, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('checked', checked, defaultValue: null)); + properties.add(new DiagnosticsProperty('selected', selected, defaultValue: null)); + properties.add(new StringProperty('label', label, defaultValue: '')); + properties.add(new StringProperty('value', value)); + properties.add(new StringProperty('hint', hint)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new DiagnosticsProperty('sortKey', sortKey, defaultValue: null)); } } @@ -2709,9 +2709,9 @@ abstract class SemanticsSortKey extends Diagnosticable implements Comparable new _AnimatedCrossFadeState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('crossFadeState', crossFadeState)); - description.add(new DiagnosticsProperty('alignment', alignment, defaultValue: Alignment.topCenter)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('crossFadeState', crossFadeState)); + properties.add(new DiagnosticsProperty('alignment', alignment, defaultValue: Alignment.topCenter)); } } diff --git a/packages/flutter/lib/src/widgets/banner.dart b/packages/flutter/lib/src/widgets/banner.dart index d8dd200ba4..c2efa4c19d 100644 --- a/packages/flutter/lib/src/widgets/banner.dart +++ b/packages/flutter/lib/src/widgets/banner.dart @@ -141,11 +141,11 @@ class BannerPainter extends CustomPainter { } @override - bool shouldRepaint(BannerPainter oldPainter) { - return message != oldPainter.message - || location != oldPainter.location - || color != oldPainter.color - || textStyle != oldPainter.textStyle; + bool shouldRepaint(BannerPainter oldDelegate) { + return message != oldDelegate.message + || location != oldDelegate.location + || color != oldDelegate.color + || textStyle != oldDelegate.textStyle; } @override @@ -312,14 +312,14 @@ class Banner extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new StringProperty('message', message, showName: false)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new EnumProperty('location', location)); - description.add(new EnumProperty('layoutDirection', layoutDirection, defaultValue: null)); - description.add(new DiagnosticsProperty('color', color, showName: false)); - textStyle?.debugFillProperties(description, prefix: 'text '); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new StringProperty('message', message, showName: false)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new EnumProperty('location', location)); + properties.add(new EnumProperty('layoutDirection', layoutDirection, defaultValue: null)); + properties.add(new DiagnosticsProperty('color', color, showName: false)); + textStyle?.debugFillProperties(properties, prefix: 'text '); } } @@ -354,13 +354,13 @@ class CheckedModeBanner extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); String message = 'disabled'; assert(() { message = '"DEBUG"'; return true; }()); - description.add(new DiagnosticsNode.message(message)); + properties.add(new DiagnosticsNode.message(message)); } } diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 948bde4ce3..e4310398bf 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -104,12 +104,12 @@ class Directionality extends InheritedWidget { } @override - bool updateShouldNotify(Directionality old) => textDirection != old.textDirection; + bool updateShouldNotify(Directionality oldWidget) => textDirection != oldWidget.textDirection; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('textDirection', textDirection)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('textDirection', textDirection)); } } @@ -179,9 +179,9 @@ class Opacity extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('opacity', opacity)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('opacity', opacity)); } } @@ -480,9 +480,9 @@ class ClipRect extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty>('clipper', clipper, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty>('clipper', clipper, defaultValue: null)); } } @@ -535,10 +535,10 @@ class ClipRRect extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('borderRadius', borderRadius, showName: false, defaultValue: null)); - description.add(new DiagnosticsProperty>('clipper', clipper, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('borderRadius', borderRadius, showName: false, defaultValue: null)); + properties.add(new DiagnosticsProperty>('clipper', clipper, defaultValue: null)); } } @@ -587,9 +587,9 @@ class ClipOval extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty>('clipper', clipper, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty>('clipper', clipper, defaultValue: null)); } } @@ -635,9 +635,9 @@ class ClipPath extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty>('clipper', clipper, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty>('clipper', clipper, defaultValue: null)); } } @@ -714,13 +714,13 @@ class PhysicalModel extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('shape', shape)); - description.add(new DiagnosticsProperty('borderRadius', borderRadius)); - description.add(new DoubleProperty('elevation', elevation)); - description.add(new DiagnosticsProperty('color', color)); - description.add(new DiagnosticsProperty('shadowColor', shadowColor)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('shape', shape)); + properties.add(new DiagnosticsProperty('borderRadius', borderRadius)); + properties.add(new DoubleProperty('elevation', elevation)); + properties.add(new DiagnosticsProperty('color', color)); + properties.add(new DiagnosticsProperty('shadowColor', shadowColor)); } } @@ -782,12 +782,12 @@ class PhysicalShape extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty>('clipper', clipper)); - description.add(new DoubleProperty('elevation', elevation)); - description.add(new DiagnosticsProperty('color', color)); - description.add(new DiagnosticsProperty('shadowColor', shadowColor)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty>('clipper', clipper)); + properties.add(new DoubleProperty('elevation', elevation)); + properties.add(new DiagnosticsProperty('color', color)); + properties.add(new DiagnosticsProperty('shadowColor', shadowColor)); } } @@ -1105,10 +1105,10 @@ class FittedBox extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('fit', fit)); - description.add(new DiagnosticsProperty('alignment', alignment)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('fit', fit)); + properties.add(new DiagnosticsProperty('alignment', alignment)); } } @@ -1281,9 +1281,9 @@ class Padding extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('padding', padding)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('padding', padding)); } } @@ -1374,11 +1374,11 @@ class Align extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment)); - description.add(new DoubleProperty('widthFactor', widthFactor, defaultValue: null)); - description.add(new DoubleProperty('heightFactor', heightFactor, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment)); + properties.add(new DoubleProperty('widthFactor', widthFactor, defaultValue: null)); + properties.add(new DoubleProperty('heightFactor', heightFactor, defaultValue: null)); } } @@ -1481,9 +1481,9 @@ class LayoutId extends ParentDataWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('id', id)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('id', id)); } } @@ -1626,13 +1626,13 @@ class SizedBox extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); final DiagnosticLevel level = (width == double.infinity && height == double.infinity) ? DiagnosticLevel.hidden : DiagnosticLevel.info; - description.add(new DoubleProperty('width', width, defaultValue: null, level: level)); - description.add(new DoubleProperty('height', height, defaultValue: null, level: level)); + properties.add(new DoubleProperty('width', width, defaultValue: null, level: level)); + properties.add(new DoubleProperty('height', height, defaultValue: null, level: level)); } } @@ -1694,9 +1694,9 @@ class ConstrainedBox extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('constraints', constraints, showName: false)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('constraints', constraints, showName: false)); } } @@ -1773,11 +1773,11 @@ class UnconstrainedBox extends SingleChildRenderObjectWidget { ); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment)); - description.add(new DiagnosticsProperty('constrainedAxis', null)); - description.add(new DiagnosticsProperty('textDirection', textDirection, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment)); + properties.add(new DiagnosticsProperty('constrainedAxis', null)); + properties.add(new DiagnosticsProperty('textDirection', textDirection, defaultValue: null)); } } @@ -1867,11 +1867,11 @@ class FractionallySizedBox extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment)); - description.add(new DoubleProperty('widthFactor', widthFactor, defaultValue: null)); - description.add(new DoubleProperty('heightFactor', heightFactor, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment)); + properties.add(new DoubleProperty('widthFactor', widthFactor, defaultValue: null)); + properties.add(new DoubleProperty('heightFactor', heightFactor, defaultValue: null)); } } @@ -1936,10 +1936,10 @@ class LimitedBox extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('maxWidth', maxWidth, defaultValue: double.infinity)); - description.add(new DoubleProperty('maxHeight', maxHeight, defaultValue: double.infinity)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('maxWidth', maxWidth, defaultValue: double.infinity)); + properties.add(new DoubleProperty('maxHeight', maxHeight, defaultValue: double.infinity)); } } @@ -2030,13 +2030,13 @@ class OverflowBox extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment)); - description.add(new DoubleProperty('minWidth', minWidth, defaultValue: null)); - description.add(new DoubleProperty('maxWidth', maxWidth, defaultValue: null)); - description.add(new DoubleProperty('minHeight', minHeight, defaultValue: null)); - description.add(new DoubleProperty('maxHeight', maxHeight, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment)); + properties.add(new DoubleProperty('minWidth', minWidth, defaultValue: null)); + properties.add(new DoubleProperty('maxWidth', maxWidth, defaultValue: null)); + properties.add(new DoubleProperty('minHeight', minHeight, defaultValue: null)); + properties.add(new DoubleProperty('maxHeight', maxHeight, defaultValue: null)); } } @@ -2107,10 +2107,10 @@ class SizedOverflowBox extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment)); - description.add(new DiagnosticsProperty('size', size, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment)); + properties.add(new DiagnosticsProperty('size', size, defaultValue: null)); } } @@ -2145,9 +2145,9 @@ class Offstage extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('offstage', offstage)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('offstage', offstage)); } @override @@ -2229,9 +2229,9 @@ class AspectRatio extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('aspectRatio', aspectRatio)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('aspectRatio', aspectRatio)); } } @@ -2434,9 +2434,9 @@ class SliverPadding extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('padding', padding)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('padding', padding)); } } @@ -2658,12 +2658,12 @@ class Stack extends MultiChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new EnumProperty('fit', fit)); - description.add(new EnumProperty('overflow', overflow)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new EnumProperty('fit', fit)); + properties.add(new EnumProperty('overflow', overflow)); } } @@ -2965,14 +2965,14 @@ class Positioned extends ParentDataWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('left', left, defaultValue: null)); - description.add(new DoubleProperty('top', top, defaultValue: null)); - description.add(new DoubleProperty('right', right, defaultValue: null)); - description.add(new DoubleProperty('bottom', bottom, defaultValue: null)); - description.add(new DoubleProperty('width', width, defaultValue: null)); - description.add(new DoubleProperty('height', height, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('left', left, defaultValue: null)); + properties.add(new DoubleProperty('top', top, defaultValue: null)); + properties.add(new DoubleProperty('right', right, defaultValue: null)); + properties.add(new DoubleProperty('bottom', bottom, defaultValue: null)); + properties.add(new DoubleProperty('width', width, defaultValue: null)); + properties.add(new DoubleProperty('height', height, defaultValue: null)); } } @@ -3324,15 +3324,15 @@ class Flex extends MultiChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('direction', direction)); - description.add(new EnumProperty('mainAxisAlignment', mainAxisAlignment)); - description.add(new EnumProperty('mainAxisSize', mainAxisSize, defaultValue: MainAxisSize.max)); - description.add(new EnumProperty('crossAxisAlignment', crossAxisAlignment)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new EnumProperty('verticalDirection', verticalDirection, defaultValue: VerticalDirection.down)); - description.add(new EnumProperty('textBaseline', textBaseline, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('direction', direction)); + properties.add(new EnumProperty('mainAxisAlignment', mainAxisAlignment)); + properties.add(new EnumProperty('mainAxisSize', mainAxisSize, defaultValue: MainAxisSize.max)); + properties.add(new EnumProperty('crossAxisAlignment', crossAxisAlignment)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new EnumProperty('verticalDirection', verticalDirection, defaultValue: VerticalDirection.down)); + properties.add(new EnumProperty('textBaseline', textBaseline, defaultValue: null)); } } @@ -3776,9 +3776,9 @@ class Flexible extends ParentDataWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new IntProperty('flex', flex)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new IntProperty('flex', flex)); } } @@ -4041,16 +4041,16 @@ class Wrap extends MultiChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('direction', direction)); - description.add(new EnumProperty('alignment', alignment)); - description.add(new DoubleProperty('spacing', spacing)); - description.add(new EnumProperty('runAlignment', runAlignment)); - description.add(new DoubleProperty('runSpacing', runSpacing)); - description.add(new DoubleProperty('crossAxisAlignment', runSpacing)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new EnumProperty('verticalDirection', verticalDirection, defaultValue: VerticalDirection.down)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('direction', direction)); + properties.add(new EnumProperty('alignment', alignment)); + properties.add(new DoubleProperty('spacing', spacing)); + properties.add(new EnumProperty('runAlignment', runAlignment)); + properties.add(new DoubleProperty('runSpacing', runSpacing)); + properties.add(new DoubleProperty('crossAxisAlignment', runSpacing)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new EnumProperty('verticalDirection', verticalDirection, defaultValue: VerticalDirection.down)); } } @@ -4267,15 +4267,15 @@ class RichText extends LeafRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('textAlign', textAlign, defaultValue: TextAlign.start)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new FlagProperty('softWrap', value: softWrap, ifTrue: 'wrapping at box width', ifFalse: 'no wrapping except at line break characters', showName: true)); - description.add(new EnumProperty('overflow', overflow, defaultValue: TextOverflow.clip)); - description.add(new DoubleProperty('textScaleFactor', textScaleFactor, defaultValue: 1.0)); - description.add(new IntProperty('maxLines', maxLines, ifNull: 'unlimited')); - description.add(new StringProperty('text', text.toPlainText())); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('textAlign', textAlign, defaultValue: TextAlign.start)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new FlagProperty('softWrap', value: softWrap, ifTrue: 'wrapping at box width', ifFalse: 'no wrapping except at line break characters', showName: true)); + properties.add(new EnumProperty('overflow', overflow, defaultValue: TextOverflow.clip)); + properties.add(new DoubleProperty('textScaleFactor', textScaleFactor, defaultValue: 1.0)); + properties.add(new IntProperty('maxLines', maxLines, ifNull: 'unlimited')); + properties.add(new StringProperty('text', text.toPlainText())); } } @@ -4441,19 +4441,19 @@ class RawImage extends LeafRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('image', image)); - description.add(new DoubleProperty('width', width, defaultValue: null)); - description.add(new DoubleProperty('height', height, defaultValue: null)); - description.add(new DoubleProperty('scale', scale, defaultValue: 1.0)); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); - description.add(new EnumProperty('colorBlendMode', colorBlendMode, defaultValue: null)); - description.add(new EnumProperty('fit', fit, defaultValue: null)); - description.add(new DiagnosticsProperty('alignment', alignment, defaultValue: null)); - description.add(new EnumProperty('repeat', repeat, defaultValue: ImageRepeat.noRepeat)); - description.add(new DiagnosticsProperty('centerSlice', centerSlice, defaultValue: null)); - description.add(new FlagProperty('matchTextDirection', value: matchTextDirection, ifTrue: 'match text direction')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('image', image)); + properties.add(new DoubleProperty('width', width, defaultValue: null)); + properties.add(new DoubleProperty('height', height, defaultValue: null)); + properties.add(new DoubleProperty('scale', scale, defaultValue: 1.0)); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); + properties.add(new EnumProperty('colorBlendMode', colorBlendMode, defaultValue: null)); + properties.add(new EnumProperty('fit', fit, defaultValue: null)); + properties.add(new DiagnosticsProperty('alignment', alignment, defaultValue: null)); + properties.add(new EnumProperty('repeat', repeat, defaultValue: ImageRepeat.noRepeat)); + properties.add(new DiagnosticsProperty('centerSlice', centerSlice, defaultValue: null)); + properties.add(new FlagProperty('matchTextDirection', value: matchTextDirection, ifTrue: 'match text direction')); } } @@ -4534,7 +4534,7 @@ class DefaultAssetBundle extends InheritedWidget { } @override - bool updateShouldNotify(DefaultAssetBundle old) => bundle != old.bundle; + bool updateShouldNotify(DefaultAssetBundle oldWidget) => bundle != oldWidget.bundle; } /// An adapter for placing a specific [RenderBox] in the widget tree. @@ -4641,8 +4641,8 @@ class Listener extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); final List listeners = []; if (onPointerDown != null) listeners.add('down'); @@ -4652,8 +4652,8 @@ class Listener extends SingleChildRenderObjectWidget { listeners.add('up'); if (onPointerCancel != null) listeners.add('cancel'); - description.add(new IterableProperty('listeners', listeners, ifEmpty: '')); - description.add(new EnumProperty('behavior', behavior)); + properties.add(new IterableProperty('listeners', listeners, ifEmpty: '')); + properties.add(new EnumProperty('behavior', behavior)); } } @@ -4753,10 +4753,10 @@ class IgnorePointer extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('ignoring', ignoring)); - description.add(new DiagnosticsProperty('ignoringSemantics', ignoringSemantics, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('ignoring', ignoring)); + properties.add(new DiagnosticsProperty('ignoringSemantics', ignoringSemantics, defaultValue: null)); } } @@ -4838,10 +4838,10 @@ class MetaData extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('behavior', behavior)); - description.add(new DiagnosticsProperty('metaData', metaData)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('behavior', behavior)); + properties.add(new DiagnosticsProperty('metaData', metaData)); } } @@ -5082,11 +5082,11 @@ class Semantics extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('container', container)); - description.add(new DiagnosticsProperty('properties', properties)); - properties.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('container', container)); + properties.add(new DiagnosticsProperty('properties', this.properties)); + this.properties.debugFillProperties(properties); } } @@ -5147,9 +5147,9 @@ class BlockSemantics extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('blocking', blocking)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('blocking', blocking)); } } @@ -5187,9 +5187,9 @@ class ExcludeSemantics extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('excluding', excluding)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('excluding', excluding)); } } diff --git a/packages/flutter/lib/src/widgets/container.dart b/packages/flutter/lib/src/widgets/container.dart index 1838ca0054..95f61d3d62 100644 --- a/packages/flutter/lib/src/widgets/container.dart +++ b/packages/flutter/lib/src/widgets/container.dart @@ -86,8 +86,8 @@ class DecoratedBox extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); String label; if (position != null) { switch (position) { @@ -101,8 +101,8 @@ class DecoratedBox extends SingleChildRenderObjectWidget { } else { label = 'decoration'; } - description.add(new EnumProperty('position', position, level: position != null ? DiagnosticLevel.hidden : DiagnosticLevel.info)); - description.add(new DiagnosticsProperty( + properties.add(new EnumProperty('position', position, level: position != null ? DiagnosticLevel.hidden : DiagnosticLevel.info)); + properties.add(new DiagnosticsProperty( label, decoration, ifNull: 'no decoration', @@ -377,14 +377,14 @@ class Container extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment, showName: false, defaultValue: null)); - description.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); - description.add(new DiagnosticsProperty('bg', decoration, defaultValue: null)); - description.add(new DiagnosticsProperty('fg', foregroundDecoration, defaultValue: null)); - description.add(new DiagnosticsProperty('constraints', constraints, defaultValue: null)); - description.add(new DiagnosticsProperty('margin', margin, defaultValue: null)); - description.add(new ObjectFlagProperty.has('transform', transform)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment, showName: false, defaultValue: null)); + properties.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); + properties.add(new DiagnosticsProperty('bg', decoration, defaultValue: null)); + properties.add(new DiagnosticsProperty('fg', foregroundDecoration, defaultValue: null)); + properties.add(new DiagnosticsProperty('constraints', constraints, defaultValue: null)); + properties.add(new DiagnosticsProperty('margin', margin, defaultValue: null)); + properties.add(new ObjectFlagProperty.has('transform', transform)); } } diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index b77e837964..16aa3b140c 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -291,19 +291,19 @@ class EditableText extends StatefulWidget { EditableTextState createState() => new EditableTextState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('controller', controller)); - description.add(new DiagnosticsProperty('focusNode', focusNode)); - description.add(new DiagnosticsProperty('obscureText', obscureText, defaultValue: false)); - description.add(new DiagnosticsProperty('autocorrect', autocorrect, defaultValue: true)); - style?.debugFillProperties(description); - description.add(new EnumProperty('textAlign', textAlign, defaultValue: null)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new DoubleProperty('textScaleFactor', textScaleFactor, defaultValue: null)); - description.add(new IntProperty('maxLines', maxLines, defaultValue: 1)); - description.add(new DiagnosticsProperty('autofocus', autofocus, defaultValue: false)); - description.add(new EnumProperty('keyboardType', keyboardType, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('controller', controller)); + properties.add(new DiagnosticsProperty('focusNode', focusNode)); + properties.add(new DiagnosticsProperty('obscureText', obscureText, defaultValue: false)); + properties.add(new DiagnosticsProperty('autocorrect', autocorrect, defaultValue: true)); + style?.debugFillProperties(properties); + properties.add(new EnumProperty('textAlign', textAlign, defaultValue: null)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new DoubleProperty('textScaleFactor', textScaleFactor, defaultValue: null)); + properties.add(new IntProperty('maxLines', maxLines, defaultValue: 1)); + properties.add(new DiagnosticsProperty('autofocus', autofocus, defaultValue: false)); + properties.add(new EnumProperty('keyboardType', keyboardType, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/widgets/focus_manager.dart b/packages/flutter/lib/src/widgets/focus_manager.dart index 04dd96645c..cde83cbbe3 100644 --- a/packages/flutter/lib/src/widgets/focus_manager.dart +++ b/packages/flutter/lib/src/widgets/focus_manager.dart @@ -354,10 +354,10 @@ class FocusScopeNode extends Object with DiagnosticableTreeMixin { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); if (_focus != null) - description.add(new DiagnosticsProperty('focus', _focus)); + properties.add(new DiagnosticsProperty('focus', _focus)); } @override diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index b9a80ecc31..5474783e1c 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -413,9 +413,9 @@ abstract class Widget extends DiagnosticableTree { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.defaultDiagnosticsTreeStyle = DiagnosticsTreeStyle.dense; + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.defaultDiagnosticsTreeStyle = DiagnosticsTreeStyle.dense; } @@ -1300,14 +1300,14 @@ abstract class State extends Diagnosticable { void didChangeDependencies() { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); assert(() { - description.add(new EnumProperty<_StateLifecycle>('lifecycle state', _debugLifecycleState, defaultValue: _StateLifecycle.ready)); + properties.add(new EnumProperty<_StateLifecycle>('lifecycle state', _debugLifecycleState, defaultValue: _StateLifecycle.ready)); return true; }()); - description.add(new ObjectFlagProperty('_widget', _widget, ifNull: 'no widget')); - description.add(new ObjectFlagProperty('_element', _element, ifNull: 'not mounted')); + properties.add(new ObjectFlagProperty('_widget', _widget, ifNull: 'no widget')); + properties.add(new ObjectFlagProperty('_element', _element, ifNull: 'not mounted')); } } @@ -3349,16 +3349,16 @@ abstract class Element extends DiagnosticableTree implements BuildContext { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.defaultDiagnosticsTreeStyle= DiagnosticsTreeStyle.dense; - description.add(new ObjectFlagProperty('depth', depth, ifNull: 'no depth')); - description.add(new ObjectFlagProperty('widget', widget, ifNull: 'no widget')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.defaultDiagnosticsTreeStyle= DiagnosticsTreeStyle.dense; + properties.add(new ObjectFlagProperty('depth', depth, ifNull: 'no depth')); + properties.add(new ObjectFlagProperty('widget', widget, ifNull: 'no widget')); if (widget != null) { - description.add(new DiagnosticsProperty('key', widget?.key, showName: false, defaultValue: null, level: DiagnosticLevel.hidden)); - widget.debugFillProperties(description); + properties.add(new DiagnosticsProperty('key', widget?.key, showName: false, defaultValue: null, level: DiagnosticLevel.hidden)); + widget.debugFillProperties(properties); } - description.add(new FlagProperty('dirty', value: dirty, ifTrue: 'dirty')); + properties.add(new FlagProperty('dirty', value: dirty, ifTrue: 'dirty')); } @override @@ -3554,9 +3554,9 @@ class ErrorWidget extends LeafRenderObjectWidget { RenderBox createRenderObject(BuildContext context) => new RenderErrorBox(message); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new StringProperty('message', message, quoted: false)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new StringProperty('message', message, quoted: false)); } } @@ -3863,9 +3863,9 @@ class StatefulElement extends ComponentElement { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty>('state', state, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty>('state', state, defaultValue: null)); } } @@ -3909,7 +3909,7 @@ class ParentDataElement extends ProxyElement { ParentDataWidget get widget => super.widget; @override - void mount(Element parent, dynamic slot) { + void mount(Element parent, dynamic newSlot) { assert(() { final List badAncestors = []; Element ancestor = parent; @@ -3935,7 +3935,7 @@ class ParentDataElement extends ProxyElement { ) ); }()); - super.mount(parent, slot); + super.mount(parent, newSlot); } void _applyParentData(ParentDataWidget widget) { @@ -4531,9 +4531,9 @@ abstract class RenderObjectElement extends Element { void removeChildRenderObject(covariant RenderObject child); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('renderObject', renderObject, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('renderObject', renderObject, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/widgets/gesture_detector.dart b/packages/flutter/lib/src/widgets/gesture_detector.dart index 5d166bcde2..8cebe17a62 100644 --- a/packages/flutter/lib/src/widgets/gesture_detector.dart +++ b/packages/flutter/lib/src/widgets/gesture_detector.dart @@ -699,16 +699,16 @@ class RawGestureDetectorState extends State { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); if (_recognizers == null) { - description.add(new DiagnosticsNode.message('DISPOSED')); + properties.add(new DiagnosticsNode.message('DISPOSED')); } else { final List gestures = _recognizers.values.map((GestureRecognizer recognizer) => recognizer.debugDescription).toList(); - description.add(new IterableProperty('gestures', gestures, ifEmpty: '')); - description.add(new IterableProperty('recognizers', _recognizers.values, level: DiagnosticLevel.fine)); + properties.add(new IterableProperty('gestures', gestures, ifEmpty: '')); + properties.add(new IterableProperty('recognizers', _recognizers.values, level: DiagnosticLevel.fine)); } - description.add(new EnumProperty('behavior', widget.behavior, defaultValue: null)); + properties.add(new EnumProperty('behavior', widget.behavior, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/widgets/heroes.dart b/packages/flutter/lib/src/widgets/heroes.dart index fcd5b34781..d936656e90 100644 --- a/packages/flutter/lib/src/widgets/heroes.dart +++ b/packages/flutter/lib/src/widgets/heroes.dart @@ -151,9 +151,9 @@ class Hero extends StatefulWidget { _HeroState createState() => new _HeroState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('tag', tag)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('tag', tag)); } } @@ -448,17 +448,17 @@ class HeroController extends NavigatorObserver { final Map _flights = {}; @override - void didPush(Route to, Route from) { + void didPush(Route route, Route previousRoute) { assert(navigator != null); - assert(to != null); - _maybeStartHeroTransition(from, to, _HeroFlightType.push); + assert(route != null); + _maybeStartHeroTransition(previousRoute, route, _HeroFlightType.push); } @override - void didPop(Route from, Route to) { + void didPop(Route route, Route previousRoute) { assert(navigator != null); - assert(from != null); - _maybeStartHeroTransition(from, to, _HeroFlightType.pop); + assert(route != null); + _maybeStartHeroTransition(route, previousRoute, _HeroFlightType.pop); } @override diff --git a/packages/flutter/lib/src/widgets/icon.dart b/packages/flutter/lib/src/widgets/icon.dart index 6529406565..941063d7a3 100644 --- a/packages/flutter/lib/src/widgets/icon.dart +++ b/packages/flutter/lib/src/widgets/icon.dart @@ -177,10 +177,10 @@ class Icon extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('icon', icon, ifNull: '', showName: false)); - description.add(new DoubleProperty('size', size, defaultValue: null)); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('icon', icon, ifNull: '', showName: false)); + properties.add(new DoubleProperty('size', size, defaultValue: null)); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/widgets/icon_theme.dart b/packages/flutter/lib/src/widgets/icon_theme.dart index 270a4b4abc..1b6955de00 100644 --- a/packages/flutter/lib/src/widgets/icon_theme.dart +++ b/packages/flutter/lib/src/widgets/icon_theme.dart @@ -68,11 +68,11 @@ class IconTheme extends InheritedWidget { } @override - bool updateShouldNotify(IconTheme old) => data != old.data; + bool updateShouldNotify(IconTheme oldWidget) => data != oldWidget.data; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('data', data, showName: false)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('data', data, showName: false)); } } diff --git a/packages/flutter/lib/src/widgets/icon_theme_data.dart b/packages/flutter/lib/src/widgets/icon_theme_data.dart index ac3b817e7b..51d923cbfb 100644 --- a/packages/flutter/lib/src/widgets/icon_theme_data.dart +++ b/packages/flutter/lib/src/widgets/icon_theme_data.dart @@ -102,10 +102,10 @@ class IconThemeData extends Diagnosticable { int get hashCode => hashValues(color, opacity, size); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); - description.add(new DoubleProperty('opacity', opacity, defaultValue: null)); - description.add(new DoubleProperty('size', size, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); + properties.add(new DoubleProperty('opacity', opacity, defaultValue: null)); + properties.add(new DoubleProperty('size', size, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/widgets/image.dart b/packages/flutter/lib/src/widgets/image.dart index 3c4dcab9aa..77456de3b1 100644 --- a/packages/flutter/lib/src/widgets/image.dart +++ b/packages/flutter/lib/src/widgets/image.dart @@ -476,18 +476,18 @@ class Image extends StatefulWidget { _ImageState createState() => new _ImageState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('image', image)); - description.add(new DoubleProperty('width', width, defaultValue: null)); - description.add(new DoubleProperty('height', height, defaultValue: null)); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); - description.add(new EnumProperty('colorBlendMode', colorBlendMode, defaultValue: null)); - description.add(new EnumProperty('fit', fit, defaultValue: null)); - description.add(new DiagnosticsProperty('alignment', alignment, defaultValue: null)); - description.add(new EnumProperty('repeat', repeat, defaultValue: ImageRepeat.noRepeat)); - description.add(new DiagnosticsProperty('centerSlice', centerSlice, defaultValue: null)); - description.add(new FlagProperty('matchTextDirection', value: matchTextDirection, ifTrue: 'match text direction')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('image', image)); + properties.add(new DoubleProperty('width', width, defaultValue: null)); + properties.add(new DoubleProperty('height', height, defaultValue: null)); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); + properties.add(new EnumProperty('colorBlendMode', colorBlendMode, defaultValue: null)); + properties.add(new EnumProperty('fit', fit, defaultValue: null)); + properties.add(new DiagnosticsProperty('alignment', alignment, defaultValue: null)); + properties.add(new EnumProperty('repeat', repeat, defaultValue: ImageRepeat.noRepeat)); + properties.add(new DiagnosticsProperty('centerSlice', centerSlice, defaultValue: null)); + properties.add(new FlagProperty('matchTextDirection', value: matchTextDirection, ifTrue: 'match text direction')); } } diff --git a/packages/flutter/lib/src/widgets/image_icon.dart b/packages/flutter/lib/src/widgets/image_icon.dart index 18fc7e0023..92523c7523 100644 --- a/packages/flutter/lib/src/widgets/image_icon.dart +++ b/packages/flutter/lib/src/widgets/image_icon.dart @@ -79,10 +79,10 @@ class ImageIcon extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('image', image, ifNull: '', showName: false)); - description.add(new DoubleProperty('size', size, defaultValue: null)); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('image', image, ifNull: '', showName: false)); + properties.add(new DoubleProperty('size', size, defaultValue: null)); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/widgets/implicit_animations.dart b/packages/flutter/lib/src/widgets/implicit_animations.dart index a0837295e1..49442931d7 100644 --- a/packages/flutter/lib/src/widgets/implicit_animations.dart +++ b/packages/flutter/lib/src/widgets/implicit_animations.dart @@ -213,9 +213,9 @@ abstract class ImplicitlyAnimatedWidget extends StatefulWidget { AnimatedWidgetBaseState createState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new IntProperty('duration', duration.inMilliseconds, unit: 'ms')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new IntProperty('duration', duration.inMilliseconds, unit: 'ms')); } } @@ -441,15 +441,15 @@ class AnimatedContainer extends ImplicitlyAnimatedWidget { _AnimatedContainerState createState() => new _AnimatedContainerState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment, showName: false, defaultValue: null)); - description.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); - description.add(new DiagnosticsProperty('bg', decoration, defaultValue: null)); - description.add(new DiagnosticsProperty('fg', foregroundDecoration, defaultValue: null)); - description.add(new DiagnosticsProperty('constraints', constraints, defaultValue: null, showName: false)); - description.add(new DiagnosticsProperty('margin', margin, defaultValue: null)); - description.add(new ObjectFlagProperty.has('transform', transform)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment, showName: false, defaultValue: null)); + properties.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); + properties.add(new DiagnosticsProperty('bg', decoration, defaultValue: null)); + properties.add(new DiagnosticsProperty('fg', foregroundDecoration, defaultValue: null)); + properties.add(new DiagnosticsProperty('constraints', constraints, defaultValue: null, showName: false)); + properties.add(new DiagnosticsProperty('margin', margin, defaultValue: null)); + properties.add(new ObjectFlagProperty.has('transform', transform)); } } @@ -533,9 +533,9 @@ class AnimatedPadding extends ImplicitlyAnimatedWidget { _AnimatedPaddingState createState() => new _AnimatedPaddingState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('padding', padding)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('padding', padding)); } } @@ -609,9 +609,9 @@ class AnimatedAlign extends ImplicitlyAnimatedWidget { _AnimatedAlignState createState() => new _AnimatedAlignState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('alignment', alignment)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('alignment', alignment)); } } @@ -722,14 +722,14 @@ class AnimatedPositioned extends ImplicitlyAnimatedWidget { _AnimatedPositionedState createState() => new _AnimatedPositionedState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('left', left, defaultValue: null)); - description.add(new DoubleProperty('top', top, defaultValue: null)); - description.add(new DoubleProperty('right', right, defaultValue: null)); - description.add(new DoubleProperty('bottom', bottom, defaultValue: null)); - description.add(new DoubleProperty('width', width, defaultValue: null)); - description.add(new DoubleProperty('height', height, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('left', left, defaultValue: null)); + properties.add(new DoubleProperty('top', top, defaultValue: null)); + properties.add(new DoubleProperty('right', right, defaultValue: null)); + properties.add(new DoubleProperty('bottom', bottom, defaultValue: null)); + properties.add(new DoubleProperty('width', width, defaultValue: null)); + properties.add(new DoubleProperty('height', height, defaultValue: null)); } } @@ -845,14 +845,14 @@ class AnimatedPositionedDirectional extends ImplicitlyAnimatedWidget { _AnimatedPositionedDirectionalState createState() => new _AnimatedPositionedDirectionalState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('start', start, defaultValue: null)); - description.add(new DoubleProperty('top', top, defaultValue: null)); - description.add(new DoubleProperty('end', end, defaultValue: null)); - description.add(new DoubleProperty('bottom', bottom, defaultValue: null)); - description.add(new DoubleProperty('width', width, defaultValue: null)); - description.add(new DoubleProperty('height', height, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('start', start, defaultValue: null)); + properties.add(new DoubleProperty('top', top, defaultValue: null)); + properties.add(new DoubleProperty('end', end, defaultValue: null)); + properties.add(new DoubleProperty('bottom', bottom, defaultValue: null)); + properties.add(new DoubleProperty('width', width, defaultValue: null)); + properties.add(new DoubleProperty('height', height, defaultValue: null)); } } @@ -972,9 +972,9 @@ class AnimatedOpacity extends ImplicitlyAnimatedWidget { _AnimatedOpacityState createState() => new _AnimatedOpacityState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('opacity', opacity)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('opacity', opacity)); } } @@ -1064,13 +1064,13 @@ class AnimatedDefaultTextStyle extends ImplicitlyAnimatedWidget { _AnimatedDefaultTextStyleState createState() => new _AnimatedDefaultTextStyleState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - style?.debugFillProperties(description); - description.add(new EnumProperty('textAlign', textAlign, defaultValue: null)); - description.add(new FlagProperty('softWrap', value: softWrap, ifTrue: 'wrapping at box width', ifFalse: 'no wrapping except at line break characters', showName: true)); - description.add(new EnumProperty('overflow', overflow, defaultValue: null)); - description.add(new IntProperty('maxLines', maxLines, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + style?.debugFillProperties(properties); + properties.add(new EnumProperty('textAlign', textAlign, defaultValue: null)); + properties.add(new FlagProperty('softWrap', value: softWrap, ifTrue: 'wrapping at box width', ifFalse: 'no wrapping except at line break characters', showName: true)); + properties.add(new EnumProperty('overflow', overflow, defaultValue: null)); + properties.add(new IntProperty('maxLines', maxLines, defaultValue: null)); } } @@ -1168,15 +1168,15 @@ class AnimatedPhysicalModel extends ImplicitlyAnimatedWidget { _AnimatedPhysicalModelState createState() => new _AnimatedPhysicalModelState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('shape', shape)); - description.add(new DiagnosticsProperty('borderRadius', borderRadius)); - description.add(new DoubleProperty('elevation', elevation)); - description.add(new DiagnosticsProperty('color', color)); - description.add(new DiagnosticsProperty('animateColor', animateColor)); - description.add(new DiagnosticsProperty('shadowColor', shadowColor)); - description.add(new DiagnosticsProperty('animateShadowColor', animateShadowColor)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('shape', shape)); + properties.add(new DiagnosticsProperty('borderRadius', borderRadius)); + properties.add(new DoubleProperty('elevation', elevation)); + properties.add(new DiagnosticsProperty('color', color)); + properties.add(new DiagnosticsProperty('animateColor', animateColor)); + properties.add(new DiagnosticsProperty('shadowColor', shadowColor)); + properties.add(new DiagnosticsProperty('animateShadowColor', animateShadowColor)); } } diff --git a/packages/flutter/lib/src/widgets/localizations.dart b/packages/flutter/lib/src/widgets/localizations.dart index 9f4c23a7aa..d50b5223ee 100644 --- a/packages/flutter/lib/src/widgets/localizations.dart +++ b/packages/flutter/lib/src/widgets/localizations.dart @@ -449,10 +449,10 @@ class Localizations extends StatefulWidget { _LocalizationsState createState() => new _LocalizationsState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('locale', locale)); - description.add(new IterableProperty>('delegates', delegates)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('locale', locale)); + properties.add(new IterableProperty>('delegates', delegates)); } } diff --git a/packages/flutter/lib/src/widgets/media_query.dart b/packages/flutter/lib/src/widgets/media_query.dart index 4a4b708aa9..fcf2b095c1 100644 --- a/packages/flutter/lib/src/widgets/media_query.dart +++ b/packages/flutter/lib/src/widgets/media_query.dart @@ -403,11 +403,11 @@ class MediaQuery extends InheritedWidget { } @override - bool updateShouldNotify(MediaQuery old) => data != old.data; + bool updateShouldNotify(MediaQuery oldWidget) => data != oldWidget.data; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('data', data, showName: false)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('data', data, showName: false)); } } diff --git a/packages/flutter/lib/src/widgets/nested_scroll_view.dart b/packages/flutter/lib/src/widgets/nested_scroll_view.dart index da800eee13..6ccd5f83ab 100644 --- a/packages/flutter/lib/src/widgets/nested_scroll_view.dart +++ b/packages/flutter/lib/src/widgets/nested_scroll_view.dart @@ -1346,9 +1346,9 @@ class SliverOverlapAbsorber extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('handle', handle)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('handle', handle)); } } @@ -1446,9 +1446,9 @@ class RenderSliverOverlapAbsorber extends RenderSliver with RenderObjectWithChil } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('handle', handle)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('handle', handle)); } } @@ -1495,9 +1495,9 @@ class SliverOverlapInjector extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('handle', handle)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('handle', handle)); } } @@ -1602,9 +1602,9 @@ class RenderSliverOverlapInjector extends RenderSliver { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('handle', handle)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('handle', handle)); } } @@ -1661,9 +1661,9 @@ class NestedScrollViewViewport extends Viewport { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('handle', handle)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('handle', handle)); } } @@ -1713,8 +1713,8 @@ class RenderNestedScrollViewViewport extends RenderViewport { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('handle', handle)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('handle', handle)); } } diff --git a/packages/flutter/lib/src/widgets/overlay.dart b/packages/flutter/lib/src/widgets/overlay.dart index 7e692e25fc..607320aeed 100644 --- a/packages/flutter/lib/src/widgets/overlay.dart +++ b/packages/flutter/lib/src/widgets/overlay.dart @@ -370,11 +370,11 @@ class OverlayState extends State with TickerProviderStateMixin { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); // TODO(jacobr): use IterableProperty instead as that would // provide a slightly more consistent string summary of the List. - description.add(new DiagnosticsProperty>('entries', _entries)); + properties.add(new DiagnosticsProperty>('entries', _entries)); } } diff --git a/packages/flutter/lib/src/widgets/overscroll_indicator.dart b/packages/flutter/lib/src/widgets/overscroll_indicator.dart index 5bf44ae3bb..71a9f824ed 100644 --- a/packages/flutter/lib/src/widgets/overscroll_indicator.dart +++ b/packages/flutter/lib/src/widgets/overscroll_indicator.dart @@ -110,9 +110,9 @@ class GlowingOverscrollIndicator extends StatefulWidget { _GlowingOverscrollIndicatorState createState() => new _GlowingOverscrollIndicatorState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('axisDirection', axisDirection)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('axisDirection', axisDirection)); String showDescription; if (showLeading && showTrailing) { showDescription = 'both sides'; @@ -123,8 +123,8 @@ class GlowingOverscrollIndicator extends StatefulWidget { } else { showDescription = 'neither side (!)'; } - description.add(new MessageProperty('show', showDescription)); - description.add(new DiagnosticsProperty('color', color, showName: false)); + properties.add(new MessageProperty('show', showDescription)); + properties.add(new DiagnosticsProperty('color', color, showName: false)); } } diff --git a/packages/flutter/lib/src/widgets/primary_scroll_controller.dart b/packages/flutter/lib/src/widgets/primary_scroll_controller.dart index 6d16dab5d8..7f647a4451 100644 --- a/packages/flutter/lib/src/widgets/primary_scroll_controller.dart +++ b/packages/flutter/lib/src/widgets/primary_scroll_controller.dart @@ -51,11 +51,11 @@ class PrimaryScrollController extends InheritedWidget { } @override - bool updateShouldNotify(PrimaryScrollController old) => controller != old.controller; + bool updateShouldNotify(PrimaryScrollController oldWidget) => controller != oldWidget.controller; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('controller', controller, ifNull: 'no controller', showName: false)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('controller', controller, ifNull: 'no controller', showName: false)); } } diff --git a/packages/flutter/lib/src/widgets/raw_keyboard_listener.dart b/packages/flutter/lib/src/widgets/raw_keyboard_listener.dart index 671d9e497d..9f808cfe5f 100644 --- a/packages/flutter/lib/src/widgets/raw_keyboard_listener.dart +++ b/packages/flutter/lib/src/widgets/raw_keyboard_listener.dart @@ -52,9 +52,9 @@ class RawKeyboardListener extends StatefulWidget { _RawKeyboardListenerState createState() => new _RawKeyboardListenerState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('focusNode', focusNode)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('focusNode', focusNode)); } } diff --git a/packages/flutter/lib/src/widgets/routes.dart b/packages/flutter/lib/src/widgets/routes.dart index 6af88ff0bb..b0a4ac71ec 100644 --- a/packages/flutter/lib/src/widgets/routes.dart +++ b/packages/flutter/lib/src/widgets/routes.dart @@ -976,8 +976,8 @@ abstract class ModalRoute extends TransitionRoute with LocalHistoryRoute route) { - super.didChangePrevious(route); + void didChangePrevious(Route previousRoute) { + super.didChangePrevious(previousRoute); setState(() { /* this might affect canPop */ }); } diff --git a/packages/flutter/lib/src/widgets/safe_area.dart b/packages/flutter/lib/src/widgets/safe_area.dart index 78ac59237c..f2ad0b480b 100644 --- a/packages/flutter/lib/src/widgets/safe_area.dart +++ b/packages/flutter/lib/src/widgets/safe_area.dart @@ -99,12 +99,12 @@ class SafeArea extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new FlagProperty('left', value: left, ifTrue: 'avoid left padding')); - description.add(new FlagProperty('top', value: left, ifTrue: 'avoid top padding')); - description.add(new FlagProperty('right', value: left, ifTrue: 'avoid right padding')); - description.add(new FlagProperty('bottom', value: left, ifTrue: 'avoid bottom padding')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new FlagProperty('left', value: left, ifTrue: 'avoid left padding')); + properties.add(new FlagProperty('top', value: left, ifTrue: 'avoid top padding')); + properties.add(new FlagProperty('right', value: left, ifTrue: 'avoid right padding')); + properties.add(new FlagProperty('bottom', value: left, ifTrue: 'avoid bottom padding')); } } @@ -193,11 +193,11 @@ class SliverSafeArea extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new FlagProperty('left', value: left, ifTrue: 'avoid left padding')); - description.add(new FlagProperty('top', value: left, ifTrue: 'avoid top padding')); - description.add(new FlagProperty('right', value: left, ifTrue: 'avoid right padding')); - description.add(new FlagProperty('bottom', value: left, ifTrue: 'avoid bottom padding')); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new FlagProperty('left', value: left, ifTrue: 'avoid left padding')); + properties.add(new FlagProperty('top', value: left, ifTrue: 'avoid top padding')); + properties.add(new FlagProperty('right', value: left, ifTrue: 'avoid right padding')); + properties.add(new FlagProperty('bottom', value: left, ifTrue: 'avoid bottom padding')); } } diff --git a/packages/flutter/lib/src/widgets/scroll_configuration.dart b/packages/flutter/lib/src/widgets/scroll_configuration.dart index cfa9bf20eb..88de490409 100644 --- a/packages/flutter/lib/src/widgets/scroll_configuration.dart +++ b/packages/flutter/lib/src/widgets/scroll_configuration.dart @@ -112,8 +112,8 @@ class ScrollConfiguration extends InheritedWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('behavior', behavior)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('behavior', behavior)); } } diff --git a/packages/flutter/lib/src/widgets/scroll_position_with_single_context.dart b/packages/flutter/lib/src/widgets/scroll_position_with_single_context.dart index 2e85ef9d9b..55ac5db271 100644 --- a/packages/flutter/lib/src/widgets/scroll_position_with_single_context.dart +++ b/packages/flutter/lib/src/widgets/scroll_position_with_single_context.dart @@ -240,11 +240,11 @@ class ScrollPositionWithSingleContext extends ScrollPosition implements ScrollAc ScrollDragController _currentDrag; @override - Drag drag(DragStartDetails details, VoidCallback onDragCanceled) { + Drag drag(DragStartDetails details, VoidCallback dragCancelCallback) { final ScrollDragController drag = new ScrollDragController( delegate: this, details: details, - onDragCanceled: onDragCanceled, + onDragCanceled: dragCancelCallback, carriedVelocity: physics.carriedMomentum(_heldPreviousVelocity), motionStartDistanceThreshold: physics.dragStartDistanceMotionThreshold, ); diff --git a/packages/flutter/lib/src/widgets/scroll_view.dart b/packages/flutter/lib/src/widgets/scroll_view.dart index 152543581f..59c378a404 100644 --- a/packages/flutter/lib/src/widgets/scroll_view.dart +++ b/packages/flutter/lib/src/widgets/scroll_view.dart @@ -237,14 +237,14 @@ abstract class ScrollView extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('scrollDirection', scrollDirection)); - description.add(new FlagProperty('reverse', value: reverse, ifTrue: 'reversed', showName: true)); - description.add(new DiagnosticsProperty('controller', controller, showName: false, defaultValue: null)); - description.add(new FlagProperty('primary', value: primary, ifTrue: 'using primary controller', showName: true)); - description.add(new DiagnosticsProperty('physics', physics, showName: false, defaultValue: null)); - description.add(new FlagProperty('shrinkWrap', value: shrinkWrap, ifTrue: 'shrink-wrapping', showName: true)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('scrollDirection', scrollDirection)); + properties.add(new FlagProperty('reverse', value: reverse, ifTrue: 'reversed', showName: true)); + properties.add(new DiagnosticsProperty('controller', controller, showName: false, defaultValue: null)); + properties.add(new FlagProperty('primary', value: primary, ifTrue: 'using primary controller', showName: true)); + properties.add(new DiagnosticsProperty('physics', physics, showName: false, defaultValue: null)); + properties.add(new FlagProperty('shrinkWrap', value: shrinkWrap, ifTrue: 'shrink-wrapping', showName: true)); } } @@ -424,9 +424,9 @@ abstract class BoxScrollView extends ScrollView { Widget buildChildLayout(BuildContext context); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('padding', padding, defaultValue: null)); } } @@ -721,9 +721,9 @@ class ListView extends BoxScrollView { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DoubleProperty('itemExtent', itemExtent, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DoubleProperty('itemExtent', itemExtent, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/widgets/scrollable.dart b/packages/flutter/lib/src/widgets/scrollable.dart index 802e353988..e20ef0541a 100644 --- a/packages/flutter/lib/src/widgets/scrollable.dart +++ b/packages/flutter/lib/src/widgets/scrollable.dart @@ -171,10 +171,10 @@ class Scrollable extends StatefulWidget { ScrollableState createState() => new ScrollableState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('axisDirection', axisDirection)); - description.add(new DiagnosticsProperty('physics', physics)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('axisDirection', axisDirection)); + properties.add(new DiagnosticsProperty('physics', physics)); } /// The state from the closest instance of this class that encloses the given context. @@ -516,9 +516,9 @@ class ScrollableState extends State with TickerProviderStateMixin } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('position', position)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('position', position)); } } diff --git a/packages/flutter/lib/src/widgets/sliver.dart b/packages/flutter/lib/src/widgets/sliver.dart index f5a047ff51..58ff7fe17f 100644 --- a/packages/flutter/lib/src/widgets/sliver.dart +++ b/packages/flutter/lib/src/widgets/sliver.dart @@ -361,9 +361,9 @@ abstract class SliverMultiBoxAdaptorWidget extends RenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('delegate', delegate)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('delegate', delegate)); } } @@ -944,8 +944,8 @@ class KeepAlive extends ParentDataWidget { bool debugCanApplyOutOfTurn() => keepAlive; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('keepAlive', keepAlive)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('keepAlive', keepAlive)); } } diff --git a/packages/flutter/lib/src/widgets/sliver_persistent_header.dart b/packages/flutter/lib/src/widgets/sliver_persistent_header.dart index 2640d38033..9ebee10819 100644 --- a/packages/flutter/lib/src/widgets/sliver_persistent_header.dart +++ b/packages/flutter/lib/src/widgets/sliver_persistent_header.dart @@ -140,9 +140,9 @@ class SliverPersistentHeader extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('delegate', delegate)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('delegate', delegate)); final List flags = []; if (pinned) flags.add('pinned'); @@ -150,7 +150,7 @@ class SliverPersistentHeader extends StatelessWidget { flags.add('floating'); if (flags.isEmpty) flags.add('normal'); - description.add(new IterableProperty('mode', flags)); + properties.add(new IterableProperty('mode', flags)); } } diff --git a/packages/flutter/lib/src/widgets/table.dart b/packages/flutter/lib/src/widgets/table.dart index b8134855d8..7d3c86dde1 100644 --- a/packages/flutter/lib/src/widgets/table.dart +++ b/packages/flutter/lib/src/widgets/table.dart @@ -393,8 +393,8 @@ class TableCell extends ParentDataWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('verticalAlignment', verticalAlignment)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('verticalAlignment', verticalAlignment)); } } diff --git a/packages/flutter/lib/src/widgets/text.dart b/packages/flutter/lib/src/widgets/text.dart index d933f0eccc..b1425e0ee0 100644 --- a/packages/flutter/lib/src/widgets/text.dart +++ b/packages/flutter/lib/src/widgets/text.dart @@ -132,22 +132,22 @@ class DefaultTextStyle extends InheritedWidget { } @override - bool updateShouldNotify(DefaultTextStyle old) { - return style != old.style || - textAlign != old.textAlign || - softWrap != old.softWrap || - overflow != old.overflow || - maxLines != old.maxLines; + bool updateShouldNotify(DefaultTextStyle oldWidget) { + return style != oldWidget.style || + textAlign != oldWidget.textAlign || + softWrap != oldWidget.softWrap || + overflow != oldWidget.overflow || + maxLines != oldWidget.maxLines; } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - style?.debugFillProperties(description); - description.add(new EnumProperty('textAlign', textAlign, defaultValue: null)); - description.add(new FlagProperty('softWrap', value: softWrap, ifTrue: 'wrapping at box width', ifFalse: 'no wrapping except at line break characters', showName: true)); - description.add(new EnumProperty('overflow', overflow, defaultValue: null)); - description.add(new IntProperty('maxLines', maxLines, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + style?.debugFillProperties(properties); + properties.add(new EnumProperty('textAlign', textAlign, defaultValue: null)); + properties.add(new FlagProperty('softWrap', value: softWrap, ifTrue: 'wrapping at box width', ifFalse: 'no wrapping except at line break characters', showName: true)); + properties.add(new EnumProperty('overflow', overflow, defaultValue: null)); + properties.add(new IntProperty('maxLines', maxLines, defaultValue: null)); } } @@ -316,18 +316,18 @@ class Text extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new StringProperty('data', data, showName: false)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new StringProperty('data', data, showName: false)); if (textSpan != null) { - description.add(textSpan.toDiagnosticsNode(name: 'textSpan', style: DiagnosticsTreeStyle.transition)); + properties.add(textSpan.toDiagnosticsNode(name: 'textSpan', style: DiagnosticsTreeStyle.transition)); } - style?.debugFillProperties(description); - description.add(new EnumProperty('textAlign', textAlign, defaultValue: null)); - description.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); - description.add(new FlagProperty('softWrap', value: softWrap, ifTrue: 'wrapping at box width', ifFalse: 'no wrapping except at line break characters', showName: true)); - description.add(new EnumProperty('overflow', overflow, defaultValue: null)); - description.add(new DoubleProperty('textScaleFactor', textScaleFactor, defaultValue: null)); - description.add(new IntProperty('maxLines', maxLines, defaultValue: null)); + style?.debugFillProperties(properties); + properties.add(new EnumProperty('textAlign', textAlign, defaultValue: null)); + properties.add(new EnumProperty('textDirection', textDirection, defaultValue: null)); + properties.add(new FlagProperty('softWrap', value: softWrap, ifTrue: 'wrapping at box width', ifFalse: 'no wrapping except at line break characters', showName: true)); + properties.add(new EnumProperty('overflow', overflow, defaultValue: null)); + properties.add(new DoubleProperty('textScaleFactor', textScaleFactor, defaultValue: null)); + properties.add(new IntProperty('maxLines', maxLines, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/widgets/ticker_provider.dart b/packages/flutter/lib/src/widgets/ticker_provider.dart index 0b32031f37..f788cdc8b9 100644 --- a/packages/flutter/lib/src/widgets/ticker_provider.dart +++ b/packages/flutter/lib/src/widgets/ticker_provider.dart @@ -54,12 +54,12 @@ class TickerMode extends InheritedWidget { } @override - bool updateShouldNotify(TickerMode old) => enabled != old.enabled; + bool updateShouldNotify(TickerMode oldWidget) => enabled != oldWidget.enabled; @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new FlagProperty('mode', value: enabled, ifTrue: 'enabled', ifFalse: 'disabled', showName: true)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new FlagProperty('mode', value: enabled, ifTrue: 'enabled', ifFalse: 'disabled', showName: true)); } } @@ -128,8 +128,8 @@ abstract class SingleTickerProviderStateMixin extends } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); String tickerDescription; if (_ticker != null) { if (_ticker.isActive && _ticker.muted) @@ -141,7 +141,7 @@ abstract class SingleTickerProviderStateMixin extends else tickerDescription = 'inactive'; } - description.add(new DiagnosticsProperty('ticker', _ticker, description: tickerDescription, showSeparator: false, defaultValue: null)); + properties.add(new DiagnosticsProperty('ticker', _ticker, description: tickerDescription, showSeparator: false, defaultValue: null)); } } @@ -212,9 +212,9 @@ abstract class TickerProviderStateMixin extends State< } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty>( + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty>( 'tickers', _tickers, description: _tickers != null ? diff --git a/packages/flutter/lib/src/widgets/title.dart b/packages/flutter/lib/src/widgets/title.dart index 897b9993e5..941029857e 100644 --- a/packages/flutter/lib/src/widgets/title.dart +++ b/packages/flutter/lib/src/widgets/title.dart @@ -50,9 +50,9 @@ class Title extends StatelessWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new StringProperty('title', title, defaultValue: '')); - description.add(new DiagnosticsProperty('color', color, defaultValue: null)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new StringProperty('title', title, defaultValue: '')); + properties.add(new DiagnosticsProperty('color', color, defaultValue: null)); } } diff --git a/packages/flutter/lib/src/widgets/transitions.dart b/packages/flutter/lib/src/widgets/transitions.dart index 03971023be..d7ea4f0a9b 100644 --- a/packages/flutter/lib/src/widgets/transitions.dart +++ b/packages/flutter/lib/src/widgets/transitions.dart @@ -59,9 +59,9 @@ abstract class AnimatedWidget extends StatefulWidget { _AnimatedState createState() => new _AnimatedState(); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty('animation', listenable)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty('animation', listenable)); } } @@ -334,9 +334,9 @@ class FadeTransition extends SingleChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new DiagnosticsProperty>('opacity', opacity)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new DiagnosticsProperty>('opacity', opacity)); } } diff --git a/packages/flutter/lib/src/widgets/viewport.dart b/packages/flutter/lib/src/widgets/viewport.dart index 7f27dbf645..bd36cf0e09 100644 --- a/packages/flutter/lib/src/widgets/viewport.dart +++ b/packages/flutter/lib/src/widgets/viewport.dart @@ -152,16 +152,16 @@ class Viewport extends MultiChildRenderObjectWidget { _ViewportElement createElement() => new _ViewportElement(this); @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('axisDirection', axisDirection)); - description.add(new EnumProperty('crossAxisDirection', crossAxisDirection, defaultValue: null)); - description.add(new DoubleProperty('anchor', anchor)); - description.add(new DiagnosticsProperty('offset', offset)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('axisDirection', axisDirection)); + properties.add(new EnumProperty('crossAxisDirection', crossAxisDirection, defaultValue: null)); + properties.add(new DoubleProperty('anchor', anchor)); + properties.add(new DiagnosticsProperty('offset', offset)); if (center != null) { - description.add(new DiagnosticsProperty('center', center)); + properties.add(new DiagnosticsProperty('center', center)); } else if (children.isNotEmpty && children.first.key != null) { - description.add(new DiagnosticsProperty('center', children.first.key, tooltip: 'implicit')); + properties.add(new DiagnosticsProperty('center', children.first.key, tooltip: 'implicit')); } } } @@ -290,10 +290,10 @@ class ShrinkWrappingViewport extends MultiChildRenderObjectWidget { } @override - void debugFillProperties(DiagnosticPropertiesBuilder description) { - super.debugFillProperties(description); - description.add(new EnumProperty('axisDirection', axisDirection)); - description.add(new EnumProperty('crossAxisDirection', crossAxisDirection, defaultValue: null)); - description.add(new DiagnosticsProperty('offset', offset)); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(new EnumProperty('axisDirection', axisDirection)); + properties.add(new EnumProperty('crossAxisDirection', crossAxisDirection, defaultValue: null)); + properties.add(new DiagnosticsProperty('offset', offset)); } } diff --git a/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart b/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart index 0f86ca8096..a66435698c 100644 --- a/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart +++ b/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart @@ -59,7 +59,7 @@ class FuchsiaDevice extends Device { @override Future startApp( - ApplicationPackage app, { + ApplicationPackage package, { String mainPath, String route, DebuggingOptions debuggingOptions, diff --git a/packages/flutter_tools/lib/src/ios/devices.dart b/packages/flutter_tools/lib/src/ios/devices.dart index d663bcde70..2a11caa3ab 100644 --- a/packages/flutter_tools/lib/src/ios/devices.dart +++ b/packages/flutter_tools/lib/src/ios/devices.dart @@ -149,7 +149,7 @@ class IOSDevice extends Device { @override Future startApp( - ApplicationPackage app, { + ApplicationPackage package, { String mainPath, String route, DebuggingOptions debuggingOptions, @@ -161,11 +161,11 @@ class IOSDevice extends Device { }) async { if (!prebuiltApplication) { // TODO(chinmaygarde): Use mainPath, route. - printTrace('Building ${app.name} for $id'); + printTrace('Building ${package.name} for $id'); // Step 1: Build the precompiled/DBC application if necessary. final XcodeBuildResult buildResult = await buildXcodeProject( - app: app, + app: package, buildInfo: debuggingOptions.buildInfo, target: mainPath, buildForDevice: true, @@ -178,12 +178,12 @@ class IOSDevice extends Device { return new LaunchResult.failed(); } } else { - if (!await installApp(app)) + if (!await installApp(package)) return new LaunchResult.failed(); } // Step 2: Check that the application exists at the specified path. - final IOSApp iosApp = app; + final IOSApp iosApp = package; final Directory bundle = fs.directory(iosApp.deviceBundlePath); if (!bundle.existsSync()) { printError('Could not find the built application bundle at ${bundle.path}.'); @@ -256,7 +256,7 @@ class IOSDevice extends Device { // TODO(danrubel): The Android device class does something similar to this code below. // The various Device subclasses should be refactored and common code moved into the superclass. final ProtocolDiscovery observatoryDiscovery = new ProtocolDiscovery.observatory( - getLogReader(app: app), + getLogReader(app: package), portForwarder: portForwarder, hostPort: debuggingOptions.observatoryPort, ipv6: ipv6, diff --git a/packages/flutter_tools/lib/src/ios/simulators.dart b/packages/flutter_tools/lib/src/ios/simulators.dart index 6b60309fd8..f50aa5bccb 100644 --- a/packages/flutter_tools/lib/src/ios/simulators.dart +++ b/packages/flutter_tools/lib/src/ios/simulators.dart @@ -292,7 +292,7 @@ class IOSSimulator extends Device { @override Future startApp( - ApplicationPackage app, { + ApplicationPackage package, { String mainPath, String route, DebuggingOptions debuggingOptions, @@ -303,16 +303,16 @@ class IOSSimulator extends Device { bool ipv6: false, }) async { if (!prebuiltApplication) { - printTrace('Building ${app.name} for $id.'); + printTrace('Building ${package.name} for $id.'); try { - await _setupUpdatedApplicationBundle(app, debuggingOptions.buildInfo); + await _setupUpdatedApplicationBundle(package, debuggingOptions.buildInfo); } on ToolExit catch (e) { printError(e.message); return new LaunchResult.failed(); } } else { - if (!await installApp(app)) + if (!await installApp(package)) return new LaunchResult.failed(); } @@ -344,11 +344,11 @@ class IOSSimulator extends Device { ProtocolDiscovery observatoryDiscovery; if (debuggingOptions.debuggingEnabled) observatoryDiscovery = new ProtocolDiscovery.observatory( - getLogReader(app: app), ipv6: ipv6); + getLogReader(app: package), ipv6: ipv6); // Launch the updated application in the simulator. try { - await SimControl.instance.launch(id, app.id, args); + await SimControl.instance.launch(id, package.id, args); } catch (error) { printError('$error'); return new LaunchResult.failed(); diff --git a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart index 9beebe69e2..14b3ac4d9c 100644 --- a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart +++ b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart @@ -167,19 +167,19 @@ class FlutterCommandRunner extends CommandRunner { } @override - Future runCommand(ArgResults globalResults) async { - context.setVariable(Flags, new Flags(globalResults)); + Future runCommand(ArgResults topLevelResults) async { + context.setVariable(Flags, new Flags(topLevelResults)); // Check for verbose. - if (globalResults['verbose']) { + if (topLevelResults['verbose']) { // Override the logger. context.setVariable(Logger, new VerboseLogger(context[Logger])); } - String recordTo = globalResults['record-to']; - String replayFrom = globalResults['replay-from']; + String recordTo = topLevelResults['record-to']; + String replayFrom = topLevelResults['replay-from']; - if (globalResults['bug-report']) { + if (topLevelResults['bug-report']) { // --bug-report implies --record-to= final Directory tmp = await const LocalFileSystem() .systemTempDirectory @@ -190,10 +190,10 @@ class FlutterCommandRunner extends CommandRunner { final File manifest = tmp.childFile('MANIFEST.txt'); final StringBuffer buffer = new StringBuffer() ..writeln('# arguments') - ..writeln(globalResults.arguments) + ..writeln(topLevelResults.arguments) ..writeln() ..writeln('# rest') - ..writeln(globalResults.rest); + ..writeln(topLevelResults.rest); await manifest.writeAsString(buffer.toString(), flush: true); // ZIP the recording up once the recording has been serialized. @@ -230,47 +230,47 @@ class FlutterCommandRunner extends CommandRunner { VMService.enableReplayConnection(replayFrom); } - logger.quiet = globalResults['quiet']; + logger.quiet = topLevelResults['quiet']; - if (globalResults.wasParsed('color')) - logger.supportsColor = globalResults['color']; + if (topLevelResults.wasParsed('color')) + logger.supportsColor = topLevelResults['color']; // We must set Cache.flutterRoot early because other features use it (e.g. // enginePath's initializer uses it). - final String flutterRoot = globalResults['flutter-root'] ?? _defaultFlutterRoot; + final String flutterRoot = topLevelResults['flutter-root'] ?? _defaultFlutterRoot; Cache.flutterRoot = fs.path.normalize(fs.path.absolute(flutterRoot)); if (platform.environment['FLUTTER_ALREADY_LOCKED'] != 'true') await Cache.lock(); - if (globalResults['suppress-analytics']) + if (topLevelResults['suppress-analytics']) flutterUsage.suppressAnalytics = true; _checkFlutterCopy(); await FlutterVersion.instance.ensureVersionFile(); - if (globalResults.command?.name != 'upgrade') { + if (topLevelResults.command?.name != 'upgrade') { await FlutterVersion.instance.checkFlutterVersionFreshness(); } - if (globalResults.wasParsed('packages')) - PackageMap.globalPackagesPath = fs.path.normalize(fs.path.absolute(globalResults['packages'])); + if (topLevelResults.wasParsed('packages')) + PackageMap.globalPackagesPath = fs.path.normalize(fs.path.absolute(topLevelResults['packages'])); // See if the user specified a specific device. - deviceManager.specifiedDeviceId = globalResults['device-id']; + deviceManager.specifiedDeviceId = topLevelResults['device-id']; // Set up the tooling configuration. - final String enginePath = _findEnginePath(globalResults); + final String enginePath = _findEnginePath(topLevelResults); if (enginePath != null) { - Artifacts.useLocalEngine(enginePath, _findEngineBuildPath(globalResults, enginePath)); + Artifacts.useLocalEngine(enginePath, _findEngineBuildPath(topLevelResults, enginePath)); } // The Android SDK could already have been set by tests. context.putIfAbsent(AndroidSdk, AndroidSdk.locateAndroidSdk); - if (globalResults['version']) { + if (topLevelResults['version']) { flutterUsage.sendCommand('version'); String status; - if (globalResults['machine']) { + if (topLevelResults['machine']) { status = const JsonEncoder.withIndent(' ').convert(FlutterVersion.instance.toJson()); } else { status = FlutterVersion.instance.toString(); @@ -279,11 +279,11 @@ class FlutterCommandRunner extends CommandRunner { return; } - if (globalResults['machine']) { + if (topLevelResults['machine']) { throwToolExit('The --machine flag is only valid with the --version flag.', exitCode: 2); } - await super.runCommand(globalResults); + await super.runCommand(topLevelResults); } String _tryEnginePath(String enginePath) {