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

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

Issue 983903003: Re-work MaterialComponent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/components/checkbox.dart ('k') | sky/framework/components/material.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
index 4fb303dc4a8b8dd11c45e93318387e5d921c51c1..0ed0fb89baa393b0ca336725f2e2aa83299cc51d 100644
--- a/sky/framework/components/floating_action_button.dart
+++ b/sky/framework/components/floating_action_button.dart
@@ -7,7 +7,7 @@ import 'material.dart';
import '../theme/colors.dart';
import '../theme/shadows.dart';
-class FloatingActionButton extends Material {
+class FloatingActionButton extends Component {
static final Style _style = new Style('''
position: absolute;
bottom: 16px;
@@ -38,7 +38,7 @@ class FloatingActionButton extends Material {
FloatingActionButton({ Object key, this.content }) : super(key: key);
Node build() {
- List<Node> children = [super.build()];
+ List<Node> children = [];
if (content != null)
children.add(content);
@@ -47,7 +47,7 @@ class FloatingActionButton extends Material {
key: "Container",
style: _style,
children: [
- new Container(
+ new Material(
key: "Clip",
style: _clipStyle,
children: children
« no previous file with comments | « sky/framework/components/checkbox.dart ('k') | sky/framework/components/material.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698