Fix dump debugging tools

This commit is contained in:
Ian Hickson 2016-03-01 13:59:58 -08:00
parent 7ee1ee31d1
commit 2c78c06136
2 changed files with 4 additions and 3 deletions

View File

@ -116,8 +116,9 @@ class TextSpan {
buffer.writeln(style.toString(indent));
if (text != null)
buffer.writeln('$indent"$text"');
for (TextSpan child in children)
buffer.writeln(child.toString(indent));
if (children != null)
for (TextSpan child in children)
buffer.writeln(child.toString(indent));
return buffer.toString();
}

View File

@ -340,7 +340,7 @@ class RawGestureDetectorState extends State<RawGestureDetector> {
if (_recognizers == null) {
description.add('DISPOSED');
} else {
List<String> gestures = _recognizers.values.map/*<String>*/((GestureRecognizer recognizer) => recognizer.toStringShort());
List<String> gestures = _recognizers.values.map/*<String>*/((GestureRecognizer recognizer) => recognizer.toStringShort()).toList();
if (gestures.isEmpty)
gestures.add('<none>');
description.add('gestures: ${gestures.join(", ")}');