Skip to content

Commit

Permalink
Fixed formatting broken in #999
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
bramp committed Oct 17, 2023
1 parent b6b399e commit c7924a2
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions packages/flutter_svg/lib/svg.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<AlignmentGeometry>('alignment', alignment, defaultValue: Alignment.center));
properties.add(DiagnosticsProperty<bool>('allowDrawingOutsideViewBox', allowDrawingOutsideViewBox, defaultValue: false));
properties.add(EnumProperty<Clip>('clipBehavior', clipBehavior, defaultValue: BoxFit.contain));
properties.add(StringProperty('colorFilter', colorFilter.toString(), defaultValue: null));
properties.add(EnumProperty<BoxFit>('fit', fit, defaultValue: BoxFit.contain));
properties.add(DiagnosticsProperty<Function>('placeholderBuilder', placeholderBuilder, defaultValue: null));
properties.add(DiagnosticsProperty<bool>('matchTextDirection', matchTextDirection, defaultValue: false));
properties.add(DiagnosticsProperty<bool>('excludeFromSemantics', excludeFromSemantics, defaultValue: false));
properties.add(StringProperty('semanticsLabel', semanticsLabel, defaultValue: null));
properties.add(EnumProperty<AlignmentGeometry>('alignment', alignment,
defaultValue: Alignment.center));
properties.add(DiagnosticsProperty<bool>(
'allowDrawingOutsideViewBox', allowDrawingOutsideViewBox,
defaultValue: false));
properties.add(EnumProperty<Clip>('clipBehavior', clipBehavior,
defaultValue: BoxFit.contain));
properties.add(StringProperty('colorFilter', colorFilter.toString(),
defaultValue: null));
properties
.add(EnumProperty<BoxFit>('fit', fit, defaultValue: BoxFit.contain));
properties.add(DiagnosticsProperty<Function>(
'placeholderBuilder', placeholderBuilder,
defaultValue: null));
properties.add(DiagnosticsProperty<bool>(
'matchTextDirection', matchTextDirection,
defaultValue: false));
properties.add(DiagnosticsProperty<bool>(
'excludeFromSemantics', excludeFromSemantics,
defaultValue: false));
properties.add(
StringProperty('semanticsLabel', semanticsLabel, defaultValue: null));
}
}

0 comments on commit c7924a2

Please sign in to comment.