Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: sky/framework/components/floating_action_button.dart

Issue 1006363004: Introduce sky/framework/theme/typography.dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add comment Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/framework/components/drawer_header.dart ('k') | sky/framework/components/menu_item.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 transform: translateX(0); 14 transform: translateX(0);
15 width: 56px; 15 width: 56px;
16 height: 56px; 16 height: 56px;
17 background-color: ${Red[500]}; 17 background-color: ${Red[500]};
18 color: white;
19 border-radius: 28px;''' 18 border-radius: 28px;'''
20 ); 19 );
21 static final Style _clipStyle = new Style(''' 20 static final Style _clipStyle = new Style('''
22 transform: translateX(0); 21 transform: translateX(0);
23 position: absolute; 22 position: absolute;
24 display: flex; 23 display: flex;
25 justify-content: center; 24 justify-content: center;
26 align-items: center; 25 align-items: center;
27 top: 0; 26 top: 0;
28 left: 0; 27 left: 0;
(...skipping 19 matching lines...) Expand all
48 children: [ 47 children: [
49 new Material( 48 new Material(
50 key: "Clip", 49 key: "Clip",
51 style: _clipStyle, 50 style: _clipStyle,
52 children: children 51 children: children
53 ) 52 )
54 ] 53 ]
55 ); 54 );
56 } 55 }
57 } 56 }
OLDNEW
« no previous file with comments | « sky/framework/components/drawer_header.dart ('k') | sky/framework/components/menu_item.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698