Commit c5def50b authored by Adam Barth's avatar Adam Barth

Port sky_home to the new SkyView world

R=ianh@google.com, eseidel@chromium.org

Review URL: https://codereview.chromium.org/1178293004.
parent d3f49f31
...@@ -19,5 +19,5 @@ void allLoaded(ImageMap loader) { ...@@ -19,5 +19,5 @@ void allLoaded(ImageMap loader) {
// Create a new app with the sprite box that contains our game world // Create a new app with the sprite box that contains our game world
//app = new AppView(new GameBox(new GameWorld(loader))); //app = new AppView(new GameBox(new GameWorld(loader)));
//print("hello"); //print("hello");
app = new AppView((new GameTestsBox(new GameTests(loader), SpriteBoxTransformMode.nativePoints))); app = new AppView(root: (new GameTestsBox(new GameTests(loader), SpriteBoxTransformMode.nativePoints)));
} }
...@@ -77,5 +77,5 @@ void main() { ...@@ -77,5 +77,5 @@ void main() {
) )
), ),
]); ]);
app = new AppView(root); app = new AppView(root: root);
} }
...@@ -90,6 +90,6 @@ Pancetta meatball tongue tenderloin rump tail jowl boudin."""; ...@@ -90,6 +90,6 @@ Pancetta meatball tongue tenderloin rump tail jowl boudin.""";
child: row child: row
); );
app = new AppView(root); app = new AppView(root: root);
view.setEventCallback(handleEvent); view.setEventCallback(handleEvent);
} }
...@@ -42,5 +42,5 @@ void main() { ...@@ -42,5 +42,5 @@ void main() {
child: new RenderPadding(child: table, padding: new EdgeDims.symmetric(vertical: 50.0)) child: new RenderPadding(child: table, padding: new EdgeDims.symmetric(vertical: 50.0))
); );
app = new AppView(root); app = new AppView(root: root);
} }
...@@ -38,5 +38,5 @@ Pancetta meatball tongue tenderloin rump tail jowl boudin."""; ...@@ -38,5 +38,5 @@ Pancetta meatball tongue tenderloin rump tail jowl boudin.""";
flexRoot.add(child); flexRoot.add(child);
child.parentData.flex = 1; child.parentData.flex = 1;
app = new AppView(root); app = new AppView(root: root);
} }
...@@ -502,5 +502,5 @@ void main() { ...@@ -502,5 +502,5 @@ void main() {
rootCircle.add(stack); rootCircle.add(stack);
var root = new RenderBoxToRenderSectorAdapter(innerRadius: 50.0, child: rootCircle); var root = new RenderBoxToRenderSectorAdapter(innerRadius: 50.0, child: rootCircle);
app = new AppView(root); app = new AppView(root: root);
} }
...@@ -22,7 +22,7 @@ void main() { ...@@ -22,7 +22,7 @@ void main() {
var paddedBox = new RenderPadding( var paddedBox = new RenderPadding(
padding: const EdgeDims.all(50.0), padding: const EdgeDims.all(50.0),
child: coloredBox); child: coloredBox);
app = new AppView(new RenderDecoratedBox( app = new AppView(root: new RenderDecoratedBox(
decoration: const BoxDecoration( decoration: const BoxDecoration(
backgroundColor: const Color(0xFFFFFFFF) backgroundColor: const Color(0xFFFFFFFF)
), ),
......
...@@ -32,7 +32,7 @@ void main() { ...@@ -32,7 +32,7 @@ void main() {
RenderPadding root = new RenderPadding(padding: new EdgeDims.all(20.0), child: transformBox); RenderPadding root = new RenderPadding(padding: new EdgeDims.all(20.0), child: transformBox);
app = new AppView(root); app = new AppView(root: root);
addPersistentFrameCallback(rotate); addPersistentFrameCallback(rotate);
} }
......
...@@ -88,5 +88,5 @@ void main() { ...@@ -88,5 +88,5 @@ void main() {
// Make the paragraph not fill the whole screen so it doesn't eat events. // Make the paragraph not fill the whole screen so it doesn't eat events.
para.parentData..top = 40.0 para.parentData..top = 40.0
..left = 20.0; ..left = 20.0;
app = new AppView(stack); app = new AppView(root: stack);
} }
...@@ -23,5 +23,5 @@ void main() { ...@@ -23,5 +23,5 @@ void main() {
RenderFlex flex = new RenderFlex(); RenderFlex flex = new RenderFlex();
flex.add(spin); flex.add(spin);
app = new AppView(flex); app = new AppView(root: flex);
} }
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