From b43e3103ee65dde1385ac5d3c47fbae21307f01e Mon Sep 17 00:00:00 2001 From: Ferhat Date: Mon, 5 Aug 2019 16:09:30 -0700 Subject: [PATCH] Update diagnostics to support web platform (#37634) --- .../lib/src/material/floating_action_button.dart | 10 +++++----- packages/flutter/lib/src/material/input_decorator.dart | 2 +- packages/flutter/lib/src/rendering/view.dart | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/flutter/lib/src/material/floating_action_button.dart b/packages/flutter/lib/src/material/floating_action_button.dart index c7a4c77f6b..bf83e6da02 100644 --- a/packages/flutter/lib/src/material/floating_action_button.dart +++ b/packages/flutter/lib/src/material/floating_action_button.dart @@ -477,11 +477,11 @@ class FloatingActionButton extends StatelessWidget { properties.add(ColorProperty('focusColor', focusColor, defaultValue: null)); properties.add(ColorProperty('hoverColor', hoverColor, defaultValue: null)); properties.add(ObjectFlagProperty('heroTag', heroTag, ifPresent: 'hero')); - properties.add(DiagnosticsProperty('elevation', elevation, defaultValue: null)); - properties.add(DiagnosticsProperty('focusElevation', focusElevation, defaultValue: null)); - properties.add(DiagnosticsProperty('hoverElevation', hoverElevation, defaultValue: null)); - properties.add(DiagnosticsProperty('highlightElevation', highlightElevation, defaultValue: null)); - properties.add(DiagnosticsProperty('disabledElevation', disabledElevation, defaultValue: null)); + properties.add(DoubleProperty('elevation', elevation, defaultValue: null)); + properties.add(DoubleProperty('focusElevation', focusElevation, defaultValue: null)); + properties.add(DoubleProperty('hoverElevation', hoverElevation, defaultValue: null)); + properties.add(DoubleProperty('highlightElevation', highlightElevation, defaultValue: null)); + properties.add(DoubleProperty('disabledElevation', disabledElevation, defaultValue: null)); properties.add(DiagnosticsProperty('shape', shape, defaultValue: null)); properties.add(DiagnosticsProperty('focusNode', focusNode, defaultValue: null)); properties.add(FlagProperty('isExtended', value: isExtended, ifTrue: 'extended')); diff --git a/packages/flutter/lib/src/material/input_decorator.dart b/packages/flutter/lib/src/material/input_decorator.dart index c1392cdf4b..d51f53ac26 100644 --- a/packages/flutter/lib/src/material/input_decorator.dart +++ b/packages/flutter/lib/src/material/input_decorator.dart @@ -3670,7 +3670,7 @@ class InputDecorationTheme extends Diagnosticable { properties.add(DiagnosticsProperty('helperStyle', helperStyle, defaultValue: defaultTheme.helperStyle)); properties.add(DiagnosticsProperty('hintStyle', hintStyle, defaultValue: defaultTheme.hintStyle)); properties.add(DiagnosticsProperty('errorStyle', errorStyle, defaultValue: defaultTheme.errorStyle)); - properties.add(DiagnosticsProperty('errorMaxLines', errorMaxLines, defaultValue: defaultTheme.errorMaxLines)); + properties.add(IntProperty('errorMaxLines', errorMaxLines, defaultValue: defaultTheme.errorMaxLines)); properties.add(DiagnosticsProperty('hasFloatingPlaceholder', hasFloatingPlaceholder, defaultValue: defaultTheme.hasFloatingPlaceholder)); properties.add(DiagnosticsProperty('isDense', isDense, defaultValue: defaultTheme.isDense)); properties.add(DiagnosticsProperty('contentPadding', contentPadding, defaultValue: defaultTheme.contentPadding)); diff --git a/packages/flutter/lib/src/rendering/view.dart b/packages/flutter/lib/src/rendering/view.dart index 17e05489d1..f54ad6f6aa 100644 --- a/packages/flutter/lib/src/rendering/view.dart +++ b/packages/flutter/lib/src/rendering/view.dart @@ -39,7 +39,7 @@ class ViewConfiguration { } @override - String toString() => '$size at ${devicePixelRatio}x'; + String toString() => '$size at ${debugFormatDouble(devicePixelRatio)}x'; } /// The root of the render tree.