Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 part of sprites; | |
| 2 | |
| 3 class SpriteWidget extends OneChildRenderObjectWrapper { | |
| 4 | |
| 5 NodeWithSize _rootNode; | |
| 6 SpriteBoxTransformMode _transformMode; | |
| 7 | |
| 8 SpriteWidget(NodeWithSize this._rootNode, [SpriteBoxTransformMode this._transf ormMode = SpriteBoxTransformMode.letterbox]); | |
|
abarth-chromium
2015/06/19 00:18:06
You can remove the "NodeWithSize" annotation. The
| |
| 9 | |
| 10 SpriteBox get root { return super.root; } | |
|
abarth-chromium
2015/06/19 00:18:06
SpriteBox get root => super.root;
| |
| 11 | |
| 12 SpriteBox createNode() => new SpriteBox(_rootNode, _transformMode); | |
| 13 | |
| 14 NodeWithSize get rootNode => _rootNode; | |
|
abarth-chromium
2015/06/19 00:18:06
You need to implement syncRenderObject. Take a lo
| |
| 15 } | |
| OLD | NEW |