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

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

Issue 993033003: Move example fn widgets into sky/framework/components (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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sky/framework/components/fixed_height_scrollable.dart ('k') | sky/framework/components/icon.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698