mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Port sky_home to the new SkyView world
R=ianh@google.com, eseidel@chromium.org Review URL: https://codereview.chromium.org/1178293004.
This commit is contained in:
parent
d3f49f3111
commit
c5def50b9c
@ -19,5 +19,5 @@ void allLoaded(ImageMap loader) {
|
||||
// Create a new app with the sprite box that contains our game world
|
||||
//app = new AppView(new GameBox(new GameWorld(loader)));
|
||||
//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() {
|
||||
)
|
||||
),
|
||||
]);
|
||||
app = new AppView(root);
|
||||
app = new AppView(root: root);
|
||||
}
|
||||
|
@ -90,6 +90,6 @@ Pancetta meatball tongue tenderloin rump tail jowl boudin.""";
|
||||
child: row
|
||||
);
|
||||
|
||||
app = new AppView(root);
|
||||
app = new AppView(root: root);
|
||||
view.setEventCallback(handleEvent);
|
||||
}
|
||||
|
@ -42,5 +42,5 @@ void main() {
|
||||
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.""";
|
||||
flexRoot.add(child);
|
||||
child.parentData.flex = 1;
|
||||
|
||||
app = new AppView(root);
|
||||
app = new AppView(root: root);
|
||||
}
|
||||
|
@ -502,5 +502,5 @@ void main() {
|
||||
rootCircle.add(stack);
|
||||
|
||||
var root = new RenderBoxToRenderSectorAdapter(innerRadius: 50.0, child: rootCircle);
|
||||
app = new AppView(root);
|
||||
app = new AppView(root: root);
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ void main() {
|
||||
var paddedBox = new RenderPadding(
|
||||
padding: const EdgeDims.all(50.0),
|
||||
child: coloredBox);
|
||||
app = new AppView(new RenderDecoratedBox(
|
||||
app = new AppView(root: new RenderDecoratedBox(
|
||||
decoration: const BoxDecoration(
|
||||
backgroundColor: const Color(0xFFFFFFFF)
|
||||
),
|
||||
|
@ -32,7 +32,7 @@ void main() {
|
||||
|
||||
RenderPadding root = new RenderPadding(padding: new EdgeDims.all(20.0), child: transformBox);
|
||||
|
||||
app = new AppView(root);
|
||||
app = new AppView(root: root);
|
||||
|
||||
addPersistentFrameCallback(rotate);
|
||||
}
|
||||
|
@ -88,5 +88,5 @@ void main() {
|
||||
// Make the paragraph not fill the whole screen so it doesn't eat events.
|
||||
para.parentData..top = 40.0
|
||||
..left = 20.0;
|
||||
app = new AppView(stack);
|
||||
app = new AppView(root: stack);
|
||||
}
|
||||
|
@ -23,5 +23,5 @@ void main() {
|
||||
|
||||
RenderFlex flex = new RenderFlex();
|
||||
flex.add(spin);
|
||||
app = new AppView(flex);
|
||||
app = new AppView(root: flex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user