Index: samples/dartcombat/views.dart |
diff --git a/samples/dartcombat/views.dart b/samples/dartcombat/views.dart |
index 3ccf0b3af27bf30449ec157f7717de2982edfbc5..f7599066416533a6d22951e7e4834ef46f0b58ae 100644 |
--- a/samples/dartcombat/views.dart |
+++ b/samples/dartcombat/views.dart |
@@ -29,13 +29,13 @@ class PlayerGridView extends View { |
String cell = "<div class='icons water'></div>"; |
StringBuffer _cells = new StringBuffer(); |
for (int i = 0 ; i < state.localGrid.cells.length; i++) { |
- _cells.add(cell); |
+ _cells.write(cell); |
} |
String cells = _cells.toString(); |
String row = "<div class='hbox'>${cells}</div>"; |
StringBuffer _rows = new StringBuffer(); |
for (int i = 0 ; i < state.localGrid.cells.length; i++) { |
- _rows.add(row); |
+ _rows.write(row); |
} |
String rows = _rows.toString(); |
String table = "<div class='vbox'>${rows}</div>"; |
@@ -178,13 +178,13 @@ class EnemyGridView extends View { |
String cell = "<div class='icons water'></div>"; |
StringBuffer _cells = new StringBuffer(); |
for (int i = 0 ; i < state.enemyGrid.cells.length; i++) { |
- _cells.add(cell); |
+ _cells.write(cell); |
} |
String cells = _cells.toString(); |
String row = "<div class='hbox'>${cells}</div>"; |
StringBuffer _rows = new StringBuffer(); |
for (int i = 0 ; i < state.enemyGrid.cells.length; i++) { |
- _rows.add(row); |
+ _rows.write(row); |
} |
String rows = _rows.toString(); |
String table = "<div class='vbox'>${rows}</div>"; |