Commit 3aeadb34 authored by Hans Muller's avatar Hans Muller

Added a key: parameter to ParentDataNode, ContentDataNode

The FlexExpandingChild flex parameter is now a keyword as
well, which adds a small readability benefit.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1172503004.
parent 44a0af04
......@@ -130,7 +130,7 @@ class StocksApp extends App {
icon: 'action/thumb_up',
onGestureTap: (event) => _handleStockModeChange(StockMode.optimistic),
children: [
new FlexExpandingChild(new Text('Optimistic'), 1),
new FlexExpandingChild(new Text('Optimistic'), flex: 1),
new Radio(key: 'optimistic-radio', value: StockMode.optimistic, groupValue: _stockMode, onChanged: _handleStockModeChange)
]),
new MenuItem(
......@@ -138,7 +138,7 @@ class StocksApp extends App {
icon: 'action/thumb_down',
onGestureTap: (event) => _handleStockModeChange(StockMode.pessimistic),
children: [
new FlexExpandingChild(new Text('Pessimistic'), 1),
new FlexExpandingChild(new Text('Pessimistic'), flex: 1),
new Radio(key: 'pessimistic-radio', value: StockMode.pessimistic, groupValue: _stockMode, onChanged: _handleStockModeChange)
]),
new MenuDivider(key: 'div2'),
......
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