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

Side by Side Diff: sky/examples/fn/widgets/floating_action_button.dart

Issue 983733003: Add constants for material colors and shadows (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/examples/fn/widgets/drawerheader.dart ('k') | sky/examples/fn/widgets/toolbar.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 part of widgets; 1 part of widgets;
2 2
3 class FloatingActionButton extends MaterialComponent { 3 class FloatingActionButton extends MaterialComponent {
4 // TODO(rafaelw): Ganesh has problems with box shadows 4 // TODO(rafaelw): Ganesh has problems with box shadows
5 // box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); 5 // box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
6 6
7 static final Style _style = new Style(''' 7 static final Style _style = new Style('''
8 position: absolute; 8 position: absolute;
9 bottom: 16px; 9 bottom: 16px;
10 right: 16px; 10 right: 16px;
11 z-index: 5; 11 z-index: 5;
12 transform: translateX(0); 12 transform: translateX(0);
13 width: 56px; 13 width: 56px;
14 height: 56px; 14 height: 56px;
15 background-color: #F44336; 15 background-color: ${Red[500]};
16 color: white; 16 color: white;
17 border-radius: 28px;''' 17 border-radius: 28px;'''
18 ); 18 );
19 static final Style _clipStyle = new Style(''' 19 static final Style _clipStyle = new Style('''
20 transform: translateX(0); 20 transform: translateX(0);
21 position: absolute; 21 position: absolute;
22 display: flex; 22 display: flex;
23 justify-content: center; 23 justify-content: center;
24 align-items: center; 24 align-items: center;
25 top: 0; 25 top: 0;
(...skipping 18 matching lines...) Expand all
44 children: [ 44 children: [
45 new Container( 45 new Container(
46 key: "Clip", 46 key: "Clip",
47 style: _clipStyle, 47 style: _clipStyle,
48 children: children 48 children: children
49 ) 49 )
50 ] 50 ]
51 ); 51 );
52 } 52 }
53 } 53 }
OLDNEW
« no previous file with comments | « sky/examples/fn/widgets/drawerheader.dart ('k') | sky/examples/fn/widgets/toolbar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698