mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Minor formatting fixes
This commit is contained in:
parent
90363ee956
commit
6c510fb558
|
@ -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.
|
||||
|
|
|
@ -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')
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue