Commit 1718f196 authored by Adam Barth's avatar Adam Barth

Remove the |style| parameter to InkWell

There's no reason for InkWell to take a |style| parameter anymore. Clients can
simply use StyleNode instead.

R=rafaelw@chromium.org

Review URL: https://codereview.chromium.org/1019443003
parent 08f2a275
...@@ -10,7 +10,6 @@ import 'stock_data.dart'; ...@@ -10,7 +10,6 @@ import 'stock_data.dart';
class StockRow extends Component { class StockRow extends Component {
static final Style _style = new Style(''' static final Style _style = new Style('''
transform: translateX(0);
display: flex; display: flex;
align-items: center; align-items: center;
border-bottom: 1px solid #F4F4F4; border-bottom: 1px solid #F4F4F4;
...@@ -68,9 +67,6 @@ class StockRow extends Component { ...@@ -68,9 +67,6 @@ class StockRow extends Component {
) )
]; ];
return new InkWell( return new StyleNode(new InkWell(children: children), _style);
style: _style,
children: children
);
} }
} }
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