Rename Sky to Flutter in a few more places

This commit is contained in:
Adam Barth
2015-09-26 12:37:27 -07:00
parent 0a0a92eb45
commit a74d02dadf
29 changed files with 60 additions and 60 deletions

View File

@@ -1,7 +1,7 @@
Sky Examples
============
Flutter Examples
================
This directory contains several examples of using Sky. Each of these is an
This directory contains several examples of using Flutter. Each of these is an
individual Dart application package. If you wish to run them with `sky_tool`
then you will want to run `pub get` inside their directory before running
`./packages/sky/sky_tool start`.
@@ -10,7 +10,7 @@ then you will want to run `pub get` inside their directory before running
the text "hello, world."
2. *Stocks.* The [stocks app](stocks) is an example of a typical mobile app
built using Sky. The app shows a list of all the stocks in the NASDAQ.
built using Flutter. The app shows a list of all the stocks in the NASDAQ.
3. *Widgets.* The [widgets app](widgets) contains a number of Sky widgets so
3. *Widgets.* The [widgets app](widgets) contains a number of Flutter widgets so
you can experiment with them in a simple container.

View File

@@ -42,5 +42,5 @@ void main() {
child: new RenderPadding(child: table, padding: new EdgeDims.symmetric(vertical: 50.0))
);
new SkyBinding(root: root);
new FlutterBinding(root: root);
}

View File

@@ -72,5 +72,5 @@ void main() {
direction: FlexDirection.vertical,
alignItems: FlexAlignItems.stretch
);
new SkyBinding(root: root);
new FlutterBinding(root: root);
}

View File

@@ -73,5 +73,5 @@ void main() {
],
direction: FlexDirection.vertical
);
new SkyBinding(root: root);
new FlutterBinding(root: root);
}

View File

@@ -51,5 +51,5 @@ RenderBox buildFlexExample() {
}
void main() {
new SkyBinding(root: buildFlexExample());
new FlutterBinding(root: buildFlexExample());
}

View File

@@ -98,6 +98,6 @@ Pancetta meatball tongue tenderloin rump tail jowl boudin.""";
);
updateTaskDescription('Interactive Flex', topColor);
new SkyBinding(root: root);
new FlutterBinding(root: root);
sky.view.setEventCallback(handleEvent);
}

View File

@@ -36,5 +36,5 @@ void main() {
child: new RenderPadding(child: table, padding: new EdgeDims.symmetric(vertical: 50.0))
);
new SkyBinding(root: root);
new FlutterBinding(root: root);
}

View File

@@ -23,4 +23,4 @@ RenderBox buildGridExample() {
return new RenderGrid(children: children, maxChildExtent: 100.0);
}
main() => new SkyBinding(root: buildGridExample());
main() => new FlutterBinding(root: buildGridExample());

View File

@@ -35,5 +35,5 @@ Pancetta meatball tongue tenderloin rump tail jowl boudin.""";
flexRoot.add(child);
child.parentData.flex = 1;
new SkyBinding(root: root);
new FlutterBinding(root: root);
}

View File

@@ -549,5 +549,5 @@ RenderBox buildSectorExample() {
}
void main() {
new SkyBinding(root: buildSectorExample());
new FlutterBinding(root: buildSectorExample());
}

View File

@@ -18,7 +18,7 @@ void main() {
var paddedBox = new RenderPadding(
padding: const EdgeDims.all(50.0),
child: coloredBox);
new SkyBinding(root: new RenderDecoratedBox(
new FlutterBinding(root: new RenderDecoratedBox(
decoration: const BoxDecoration(
backgroundColor: const Color(0xFFFFFFFF)
),

View File

@@ -59,5 +59,5 @@ void main() {
(p4.verticalCenter == p2.height / al.cm(2.0)) as al.Constraint,
]);
new SkyBinding(root: root);
new FlutterBinding(root: root);
}

View File

@@ -29,7 +29,7 @@ void main() {
RenderPadding root = new RenderPadding(padding: new EdgeDims.all(20.0), child: transformBox);
new SkyBinding(root: root);
new FlutterBinding(root: root);
scheduler.addPersistentFrameCallback(rotate);
}

View File

@@ -84,5 +84,5 @@ void main() {
// that it doesn't eat events.
paragraph.parentData..top = 40.0
..left = 20.0;
new SkyBinding(root: stack);
new FlutterBinding(root: stack);
}

View File

@@ -24,5 +24,5 @@ void main() {
RenderFlex flex = new RenderFlex();
flex.add(spin);
new SkyBinding(root: flex);
new FlutterBinding(root: flex);
}

View File

@@ -70,12 +70,12 @@ void rotate(double timeStamp) {
void main() {
// Because we're going to use Widgets, we want to initialise its
// SkyBinding, not use the default one. We don't really need to do
// FlutterBinding, not use the default one. We don't really need to do
// this, because RenderBoxToWidgetAdapter does it for us, but
// it's good practice in case we happen to not have a
// RenderBoxToWidgetAdapter in our tree at startup, or in case we
// want a renderViewOverride.
WidgetSkyBinding.initWidgetSkyBinding();
WidgetFlutterBinding.initWidgetFlutterBinding();
RenderProxyBox proxy = new RenderProxyBox();
new RenderBoxToWidgetAdapter(proxy, builder); // adds itself to proxy
@@ -88,6 +88,6 @@ void main() {
transformBox = new RenderTransform(child: flexRoot, transform: new Matrix4.identity());
RenderPadding root = new RenderPadding(padding: new EdgeDims.all(80.0), child: transformBox);
SkyBinding.instance.renderView.child = root;
FlutterBinding.instance.renderView.child = root;
scheduler.addPersistentFrameCallback(rotate);
}