Style guide says enum values should be lowerCamelCase.
https://www.dartlang.org/articles/style-guide/#names R=jackson@google.com Review URL: https://codereview.chromium.org/1158813004
This commit is contained in:
@@ -53,7 +53,7 @@ void main() {
|
||||
child.parentData.flex = flex;
|
||||
}
|
||||
|
||||
var row = new RenderFlex(direction: FlexDirection.Horizontal);
|
||||
var row = new RenderFlex(direction: FlexDirection.horizontal);
|
||||
|
||||
// Left cell
|
||||
addFlexChildSolidColor(row, const Color(0xFF00D2B8), flex: 1);
|
||||
@@ -64,7 +64,7 @@ void main() {
|
||||
var padding = new RenderPadding(padding: const EdgeDims.all(10.0), child: image);
|
||||
row.add(padding);
|
||||
|
||||
RenderFlex column = new RenderFlex(direction: FlexDirection.Vertical);
|
||||
RenderFlex column = new RenderFlex(direction: FlexDirection.vertical);
|
||||
|
||||
// Top cell
|
||||
addFlexChildSolidColor(column, const Color(0xFF55DDCA), flex: 1);
|
||||
|
||||
@@ -13,7 +13,7 @@ import '../lib/solid_color_box.dart';
|
||||
AppView app;
|
||||
|
||||
void main() {
|
||||
RenderFlex flexRoot = new RenderFlex(direction: FlexDirection.Vertical);
|
||||
RenderFlex flexRoot = new RenderFlex(direction: FlexDirection.vertical);
|
||||
|
||||
RenderObject root = new RenderDecoratedBox(
|
||||
decoration: new BoxDecoration(backgroundColor: const Color(0xFF606060)),
|
||||
|
||||
@@ -26,7 +26,7 @@ import 'package:sky/framework/rendering/box.dart';
|
||||
import 'dart:async';
|
||||
import 'dart:sky' as sky;
|
||||
|
||||
enum StockMode { Optimistic, Pessimistic }
|
||||
enum StockMode { optimistic, pessimistic }
|
||||
|
||||
class StocksApp extends App {
|
||||
|
||||
@@ -106,7 +106,7 @@ class StocksApp extends App {
|
||||
});
|
||||
}
|
||||
|
||||
StockMode _stockMode = StockMode.Optimistic;
|
||||
StockMode _stockMode = StockMode.optimistic;
|
||||
void _handleStockModeChange(StockMode value) {
|
||||
setState(() {
|
||||
_stockMode = value;
|
||||
@@ -133,18 +133,18 @@ class StocksApp extends App {
|
||||
// new MenuItem(
|
||||
// key: 'Optimistic Menu Item',
|
||||
// icon: 'action/thumb_up',
|
||||
// onGestureTap: (event) => _handleStockModeChange(StockMode.Optimistic),
|
||||
// onGestureTap: (event) => _handleStockModeChange(StockMode.optimistic),
|
||||
// children: [
|
||||
// new ParentDataNode(new Text('Optimistic'), _flex1),
|
||||
// new Radio(key: 'optimistic-radio', value: StockMode.Optimistic, groupValue: _stockMode, onChanged: _handleStockModeChange)
|
||||
// new Radio(key: 'optimistic-radio', value: StockMode.optimistic, groupValue: _stockMode, onChanged: _handleStockModeChange)
|
||||
// ]),
|
||||
// new MenuItem(
|
||||
// key: 'Pessimistic Menu Item',
|
||||
// icon: 'action/thumb_down',
|
||||
// onGestureTap: (event) => _handleStockModeChange(StockMode.Pessimistic),
|
||||
// onGestureTap: (event) => _handleStockModeChange(StockMode.pessimistic),
|
||||
// children: [
|
||||
// new ParentDataNode(new Text('Pessimistic'), _flex1),
|
||||
// new Radio(key: 'pessimistic-radio', value: StockMode.Pessimistic, groupValue: _stockMode, onChanged: _handleStockModeChange)
|
||||
// new Radio(key: 'pessimistic-radio', value: StockMode.pessimistic, groupValue: _stockMode, onChanged: _handleStockModeChange)
|
||||
// ]),
|
||||
// new MenuDivider(key: 'div2'),
|
||||
new MenuItem(
|
||||
|
||||
@@ -79,7 +79,7 @@ class StockArrow extends Component {
|
||||
|
||||
return new FlexContainer(
|
||||
inlineStyle: 'border-color: $border',
|
||||
direction: FlexDirection.Row,
|
||||
direction: FlexDirection.horizontal,
|
||||
style: _style,
|
||||
children: [
|
||||
new Container(
|
||||
|
||||
Reference in New Issue
Block a user