Minor formatting fixes

This commit is contained in:
Viktor Lidholt 2015-07-21 13:30:30 -07:00
parent 90363ee956
commit 6c510fb558
2 changed files with 2 additions and 8 deletions

View file

@ -29,8 +29,7 @@ class SpriteBox extends RenderBox {
NodeWithSize _rootNode;
void set rootNode (NodeWithSize value) {
if (value == _rootNode)
return;
if (value == _rootNode) return;
// Remove sprite box references
if (_rootNode != null) _removeSpriteBoxReference(_rootNode);
@ -110,11 +109,6 @@ class SpriteBox extends RenderBox {
_scheduleTick();
}
void detach() {
super.detach();
}
// Properties
/// The root node of the node tree that is rendered by this box.

View file

@ -93,7 +93,7 @@ class GameDemoApp extends App {
return new Center(
child: new RaisedButton(
child: new Text("Play"),
onPressed:() => navigator.pushNamed('/game')
onPressed: () => navigator.pushNamed('/game')
)
);
}