| 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 '../fn.dart'; |
| 6 import 'material.dart'; | 6 import 'material.dart'; |
| 7 import '../theme/colors.dart'; | 7 import '../theme/colors.dart'; |
| 8 import '../theme/shadows.dart'; | |
| 9 | 8 |
| 10 class FloatingActionButton extends Component { | 9 class FloatingActionButton extends Component { |
| 11 static final Style _style = new Style(''' | 10 static final Style _style = new Style(''' |
| 12 position: absolute; | 11 position: absolute; |
| 13 bottom: 16px; | 12 bottom: 16px; |
| 14 right: 16px; | 13 right: 16px; |
| 15 z-index: 5; | 14 z-index: 5; |
| 16 transform: translateX(0); | 15 transform: translateX(0); |
| 17 width: 56px; | 16 width: 56px; |
| 18 height: 56px; | 17 height: 56px; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 children: [ | 53 children: [ |
| 55 new Material( | 54 new Material( |
| 56 key: "Clip", | 55 key: "Clip", |
| 57 styles: [_clipStyle], | 56 styles: [_clipStyle], |
| 58 children: children | 57 children: children |
| 59 ) | 58 ) |
| 60 ] | 59 ] |
| 61 ); | 60 ); |
| 62 } | 61 } |
| 63 } | 62 } |
| OLD | NEW |