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

Unified Diff: sky/framework/components/floating_action_button.dart

Issue 1132063007: Rationalize Dart mojo and sky package structure (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/components/fixed_height_scrollable.dart ('k') | sky/framework/components/icon.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/floating_action_button.dart
diff --git a/sky/framework/components/floating_action_button.dart b/sky/framework/components/floating_action_button.dart
deleted file mode 100644
index b16190f5a73901824a974ed5659bcab475a36575..0000000000000000000000000000000000000000
--- a/sky/framework/components/floating_action_button.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import '../fn.dart';
-import '../theme/colors.dart';
-import 'ink_well.dart';
-import 'material.dart';
-
-class FloatingActionButton extends Component {
- // TODO(abarth): We need a better way to become a container for absolutely
- // positioned elements.
- static final Style _style = new Style('''
- width: 56px;
- height: 56px;
- background-color: ${Red[500]};
- border-radius: 28px;'''
- );
- static final Style _clipStyle = new Style('''
- position: absolute;
- justify-content: center;
- align-items: center;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- -webkit-clip-path: circle(28px at center);''');
-
- UINode content;
- int level;
-
- FloatingActionButton({ Object key, this.content, this.level: 0 })
- : super(key: key);
-
- UINode build() {
- List<UINode> children = [];
-
- if (content != null)
- children.add(content);
-
- return new Material(
- content: new Container(
- style: _style,
- children: [new StyleNode(new InkWell(children: children), _clipStyle)]),
- level: level);
- }
-}
« 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