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

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

Issue 1030963005: Remove the |style| parameter from Material (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: type fix 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 cb786d0742e9ee5c2374957b54bfa1619f6b3bf6..0fe36f3e466c31a9985b6c3a15eaac4217c0cc89 100644
--- a/sky/framework/components/floating_action_button.dart
+++ b/sky/framework/components/floating_action_button.dart
@@ -3,8 +3,9 @@
// found in the LICENSE file.
import '../fn.dart';
-import 'material.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
@@ -41,15 +42,8 @@ class FloatingActionButton extends Component {
children.add(content);
return new Container(
- key: "Container",
style: level > 0 ? _style.extend(Material.shadowStyle[level]) : _style,
- children: [
- new Material(
- key: "Clip",
- style: _clipStyle,
- children: children
- )
- ]
+ children: [new StyleNode(new InkWell(children: children), _clipStyle)]
);
}
}
« 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