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

Side by Side Diff: sky/sdk/lib/framework/widgets/floating_action_button.dart

Issue 1177383006: Rename all the things (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix imports Created 5 years, 6 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
(Empty)
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.
4
5 import '../theme2/colors.dart';
6 import '../theme2/edges.dart';
7 import 'button_base.dart';
8 import 'ink_well.dart';
9 import 'material.dart';
10 import 'basic.dart';
11
12 // TODO(eseidel): This needs to change based on device size?
13 // http://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylin es-keylines-spacing
14 const double _kSize = 56.0;
15
16 class FloatingActionButton extends ButtonBase {
17
18 FloatingActionButton({ Object key, this.child })
19 : super(key: key);
20
21 final UINode child;
22
23 UINode buildContent() {
24 return new Material(
25 child: new ClipOval(
26 child: new Container(
27 width: _kSize,
28 height: _kSize,
29 child: new InkWell(child: new Center(child: child))
30 )
31 ),
32 color: Red[500],
33 edge: MaterialEdge.circle,
34 level: highlight ? 3 : 2
35 );
36 }
37
38 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/widgets/fixed_height_scrollable.dart ('k') | sky/sdk/lib/framework/widgets/icon.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698