Commit 2c78c061 authored by Ian Hickson's avatar Ian Hickson

Fix dump debugging tools

parent 7ee1ee31
...@@ -116,6 +116,7 @@ class TextSpan { ...@@ -116,6 +116,7 @@ class TextSpan {
buffer.writeln(style.toString(indent)); buffer.writeln(style.toString(indent));
if (text != null) if (text != null)
buffer.writeln('$indent"$text"'); buffer.writeln('$indent"$text"');
if (children != null)
for (TextSpan child in children) for (TextSpan child in children)
buffer.writeln(child.toString(indent)); buffer.writeln(child.toString(indent));
return buffer.toString(); return buffer.toString();
......
...@@ -340,7 +340,7 @@ class RawGestureDetectorState extends State<RawGestureDetector> { ...@@ -340,7 +340,7 @@ class RawGestureDetectorState extends State<RawGestureDetector> {
if (_recognizers == null) { if (_recognizers == null) {
description.add('DISPOSED'); description.add('DISPOSED');
} else { } 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) if (gestures.isEmpty)
gestures.add('<none>'); gestures.add('<none>');
description.add('gestures: ${gestures.join(", ")}'); description.add('gestures: ${gestures.join(", ")}');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment