mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Effen] s/Node/UINode/, s/Element/WrapperNode/, s/EventTarget/EventListenerNode/
R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1043283003
This commit is contained in:
parent
362f8193ab
commit
fd14a1d0f2
@ -5,7 +5,7 @@
|
||||
import 'package:sky/framework/fn.dart';
|
||||
|
||||
class HelloWorldApp extends App {
|
||||
Node build() {
|
||||
UINode build() {
|
||||
return new Text('Hello, world!');
|
||||
}
|
||||
}
|
||||
|
||||
@ -112,7 +112,7 @@ class StocksApp extends App {
|
||||
);
|
||||
}
|
||||
|
||||
Node buildActionBar() {
|
||||
UINode buildActionBar() {
|
||||
return new StyleNode(
|
||||
new ActionBar(
|
||||
left: new IconButton(
|
||||
@ -133,7 +133,7 @@ class StocksApp extends App {
|
||||
}
|
||||
|
||||
// TODO(abarth): Should we factor this into a SearchBar in the framework?
|
||||
Node buildSearchBar() {
|
||||
UINode buildSearchBar() {
|
||||
return new StyleNode(
|
||||
new ActionBar(
|
||||
left: new IconButton(
|
||||
@ -146,7 +146,7 @@ class StocksApp extends App {
|
||||
_searchBarStyle);
|
||||
}
|
||||
|
||||
void addMenuToOverlays(List<Node> overlays) {
|
||||
void addMenuToOverlays(List<UINode> overlays) {
|
||||
if (_menuController == null)
|
||||
return;
|
||||
overlays.add(new ModalOverlay(
|
||||
@ -154,8 +154,8 @@ class StocksApp extends App {
|
||||
onDismiss: _handleMenuHide));
|
||||
}
|
||||
|
||||
Node build() {
|
||||
List<Node> overlays = [];
|
||||
UINode build() {
|
||||
List<UINode> overlays = [];
|
||||
addMenuToOverlays(overlays);
|
||||
|
||||
return new Scaffold(
|
||||
|
||||
@ -73,7 +73,7 @@ class StockArrow extends Component {
|
||||
return _kRedColors[_colorIndexForPercentChange(percentChange)];
|
||||
}
|
||||
|
||||
Node build() {
|
||||
UINode build() {
|
||||
String border = _colorForPercentChange(percentChange).toString();
|
||||
bool up = percentChange > 0;
|
||||
String type = up ? 'bottom' : 'top';
|
||||
|
||||
@ -18,7 +18,7 @@ class Stocklist extends FixedHeightScrollable {
|
||||
this.query
|
||||
}) : super(key: key, scrollBehavior: new OverscrollBehavior());
|
||||
|
||||
List<Node> buildItems(int start, int count) {
|
||||
List<UINode> buildItems(int start, int count) {
|
||||
return stocks
|
||||
.skip(start)
|
||||
.where((stock) => query == null || stock.symbol.contains(
|
||||
|
||||
@ -16,7 +16,7 @@ class StockMenu extends Component {
|
||||
|
||||
StockMenu({Object key, this.controller}) : super(key: key);
|
||||
|
||||
Node build() {
|
||||
UINode build() {
|
||||
return new StyleNode(
|
||||
new PopupMenu(
|
||||
controller: controller,
|
||||
|
||||
@ -39,14 +39,14 @@ class StockRow extends Component {
|
||||
this.stock = stock;
|
||||
}
|
||||
|
||||
Node build() {
|
||||
UINode build() {
|
||||
String lastSale = "\$${stock.lastSale.toStringAsFixed(2)}";
|
||||
|
||||
String changeInPrice = "${stock.percentChange.toStringAsFixed(2)}%";
|
||||
if (stock.percentChange > 0)
|
||||
changeInPrice = "+" + changeInPrice;
|
||||
|
||||
List<Node> children = [
|
||||
List<UINode> children = [
|
||||
new StockArrow(
|
||||
percentChange: stock.percentChange
|
||||
),
|
||||
|
||||
@ -13,7 +13,7 @@ class WidgetsApp extends App {
|
||||
top: 200px;
|
||||
left: 200px;''');
|
||||
|
||||
Node build() {
|
||||
UINode build() {
|
||||
return new Container(
|
||||
children: [
|
||||
new Button(key: 'Go', content: new Text('Go'), level: 1),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user