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

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

Issue 1006053002: Allow Effen Styles to be extendable (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sdfsd 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/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
index 1752710cdc3f4c2375119ee0aaeb648b9db2f455..93fd61b50be6bac37ffdefb962a14b22c0ea5278 100644
--- a/sky/framework/components/floating_action_button.dart
+++ b/sky/framework/components/floating_action_button.dart
@@ -43,17 +43,13 @@ class FloatingActionButton extends Component {
if (content != null)
children.add(content);
- List<Style> containerStyle = [_style];
- if (level > 0)
- containerStyle.add(Material.shadowStyle[level]);
-
return new Container(
key: "Container",
- styles: containerStyle,
+ style: level > 0 ? _style.extend(Material.shadowStyle[level]) : _style,
children: [
new Material(
key: "Clip",
- styles: [_clipStyle],
+ style: _clipStyle,
children: children
)
]
« 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