OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 import '../fn.dart'; | 5 import '../fn2.dart'; |
6 import '../theme/colors.dart'; | 6 import '../theme/colors.dart'; |
7 import 'ink_well.dart'; | 7 import 'ink_well.dart'; |
8 import 'material.dart'; | 8 import 'material.dart'; |
9 | 9 |
10 class FloatingActionButton extends Component { | 10 class FloatingActionButton extends Component { |
11 // TODO(abarth): We need a better way to become a container for absolutely | 11 // TODO(abarth): We need a better way to become a container for absolutely |
12 // positioned elements. | 12 // positioned elements. |
13 static final Style _style = new Style(''' | 13 static final Style _style = new Style(''' |
14 width: 56px; | 14 width: 56px; |
15 height: 56px; | 15 height: 56px; |
(...skipping 22 matching lines...) Expand all Loading... |
38 if (content != null) | 38 if (content != null) |
39 children.add(content); | 39 children.add(content); |
40 | 40 |
41 return new Material( | 41 return new Material( |
42 content: new Container( | 42 content: new Container( |
43 style: _style, | 43 style: _style, |
44 children: [new StyleNode(new InkWell(children: children), _clipStyle)]), | 44 children: [new StyleNode(new InkWell(children: children), _clipStyle)]), |
45 level: level); | 45 level: level); |
46 } | 46 } |
47 } | 47 } |
OLD | NEW |