| 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 | 8 |
| 9 class FloatingActionButton extends Component { | 9 class FloatingActionButton extends Component { |
| 10 static final Style _style = new Style(''' | 10 static final Style _style = new Style(''' |
| 11 position: absolute; | 11 position: absolute; |
| 12 bottom: 16px; | 12 bottom: 16px; |
| 13 right: 16px; | 13 right: 16px; |
| 14 z-index: 5; | |
| 15 transform: translateX(0); | 14 transform: translateX(0); |
| 16 width: 56px; | 15 width: 56px; |
| 17 height: 56px; | 16 height: 56px; |
| 18 background-color: ${Red[500]}; | 17 background-color: ${Red[500]}; |
| 19 color: white; | 18 color: white; |
| 20 border-radius: 28px;''' | 19 border-radius: 28px;''' |
| 21 ); | 20 ); |
| 22 static final Style _clipStyle = new Style(''' | 21 static final Style _clipStyle = new Style(''' |
| 23 transform: translateX(0); | 22 transform: translateX(0); |
| 24 position: absolute; | 23 position: absolute; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 49 children: [ | 48 children: [ |
| 50 new Material( | 49 new Material( |
| 51 key: "Clip", | 50 key: "Clip", |
| 52 style: _clipStyle, | 51 style: _clipStyle, |
| 53 children: children | 52 children: children |
| 54 ) | 53 ) |
| 55 ] | 54 ] |
| 56 ); | 55 ); |
| 57 } | 56 } |
| 58 } | 57 } |
| OLD | NEW |