From c7924a2b89c13b6e01102d378b7e65544506d298 Mon Sep 17 00:00:00 2001 From: Andrew Brampton Date: Tue, 17 Oct 2023 12:59:59 -0700 Subject: [PATCH] Fixed formatting broken in https://github.com/dnfield/flutter_svg/pull/999 I originally didn't format the debugFillProperties because that seems to be what happens in the main flutter library (presumably for better readability), but here it breaks the presubmits. So here is a quick `dart format`. --- packages/flutter_svg/lib/svg.dart | 34 ++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/packages/flutter_svg/lib/svg.dart b/packages/flutter_svg/lib/svg.dart index 3ac7c6a7..a87d5180 100644 --- a/packages/flutter_svg/lib/svg.dart +++ b/packages/flutter_svg/lib/svg.dart @@ -501,17 +501,31 @@ class SvgPicture extends StatelessWidget { void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); - properties.add(StringProperty('bytesLoader', bytesLoader.toString(), showName: false)); + properties.add( + StringProperty('bytesLoader', bytesLoader.toString(), showName: false)); properties.add(DoubleProperty('width', width, defaultValue: null)); properties.add(DoubleProperty('height', height, defaultValue: null)); - properties.add(EnumProperty('alignment', alignment, defaultValue: Alignment.center)); - properties.add(DiagnosticsProperty('allowDrawingOutsideViewBox', allowDrawingOutsideViewBox, defaultValue: false)); - properties.add(EnumProperty('clipBehavior', clipBehavior, defaultValue: BoxFit.contain)); - properties.add(StringProperty('colorFilter', colorFilter.toString(), defaultValue: null)); - properties.add(EnumProperty('fit', fit, defaultValue: BoxFit.contain)); - properties.add(DiagnosticsProperty('placeholderBuilder', placeholderBuilder, defaultValue: null)); - properties.add(DiagnosticsProperty('matchTextDirection', matchTextDirection, defaultValue: false)); - properties.add(DiagnosticsProperty('excludeFromSemantics', excludeFromSemantics, defaultValue: false)); - properties.add(StringProperty('semanticsLabel', semanticsLabel, defaultValue: null)); + properties.add(EnumProperty('alignment', alignment, + defaultValue: Alignment.center)); + properties.add(DiagnosticsProperty( + 'allowDrawingOutsideViewBox', allowDrawingOutsideViewBox, + defaultValue: false)); + properties.add(EnumProperty('clipBehavior', clipBehavior, + defaultValue: BoxFit.contain)); + properties.add(StringProperty('colorFilter', colorFilter.toString(), + defaultValue: null)); + properties + .add(EnumProperty('fit', fit, defaultValue: BoxFit.contain)); + properties.add(DiagnosticsProperty( + 'placeholderBuilder', placeholderBuilder, + defaultValue: null)); + properties.add(DiagnosticsProperty( + 'matchTextDirection', matchTextDirection, + defaultValue: false)); + properties.add(DiagnosticsProperty( + 'excludeFromSemantics', excludeFromSemantics, + defaultValue: false)); + properties.add( + StringProperty('semanticsLabel', semanticsLabel, defaultValue: null)); } }