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

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

Issue 1037673002: Disentangle Material and InkSplash (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/components/drawer.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 0fe36f3e466c31a9985b6c3a15eaac4217c0cc89..3d548d3ba843e8ac04e13e34797ff3034618be8e 100644
--- a/sky/framework/components/floating_action_button.dart
+++ b/sky/framework/components/floating_action_button.dart
@@ -41,9 +41,10 @@ class FloatingActionButton extends Component {
if (content != null)
children.add(content);
- return new Container(
- style: level > 0 ? _style.extend(Material.shadowStyle[level]) : _style,
- children: [new StyleNode(new InkWell(children: children), _clipStyle)]
- );
+ 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/drawer.dart ('k') | sky/framework/components/material.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698