| OLD | NEW |
| 1 part of widgets; | 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 |
| 3 // found in the LICENSE file. |
| 2 | 4 |
| 3 class FloatingActionButton extends MaterialComponent { | 5 import '../fn.dart'; |
| 6 import 'material.dart'; |
| 7 import '../theme/colors.dart'; |
| 8 import '../theme/shadows.dart'; |
| 9 |
| 10 class FloatingActionButton extends Material { |
| 4 static final Style _style = new Style(''' | 11 static final Style _style = new Style(''' |
| 5 position: absolute; | 12 position: absolute; |
| 6 bottom: 16px; | 13 bottom: 16px; |
| 7 right: 16px; | 14 right: 16px; |
| 8 z-index: 5; | 15 z-index: 5; |
| 9 transform: translateX(0); | 16 transform: translateX(0); |
| 10 width: 56px; | 17 width: 56px; |
| 11 height: 56px; | 18 height: 56px; |
| 12 background-color: ${Red[500]}; | 19 background-color: ${Red[500]}; |
| 13 color: white; | 20 color: white; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 42 children: [ | 49 children: [ |
| 43 new Container( | 50 new Container( |
| 44 key: "Clip", | 51 key: "Clip", |
| 45 style: _clipStyle, | 52 style: _clipStyle, |
| 46 children: children | 53 children: children |
| 47 ) | 54 ) |
| 48 ] | 55 ] |
| 49 ); | 56 ); |
| 50 } | 57 } |
| 51 } | 58 } |
| OLD | NEW |