diff --git a/packages/flutter_svg/lib/svg.dart b/packages/flutter_svg/lib/svg.dart index ca421374..3ac7c6a7 100644 --- a/packages/flutter_svg/lib/svg.dart +++ b/packages/flutter_svg/lib/svg.dart @@ -496,4 +496,22 @@ class SvgPicture extends StatelessWidget { matchTextDirection: matchTextDirection, ); } + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + + 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)); + } }