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

Unified Diff: sky/sdk/lib/widgets/floating_action_button.dart

Issue 1204523002: Material light and dark themes for Sky widgets (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix analyzer warning properly Created 5 years, 6 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
Index: sky/sdk/lib/widgets/floating_action_button.dart
diff --git a/sky/sdk/lib/widgets/floating_action_button.dart b/sky/sdk/lib/widgets/floating_action_button.dart
index 8b3952ab434a77594c9f003108a442878e1a823f..58b4790df14b3fbf8e2ea548d1e5ff07d001c689 100644
--- a/sky/sdk/lib/widgets/floating_action_button.dart
+++ b/sky/sdk/lib/widgets/floating_action_button.dart
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import '../theme/colors.dart';
import '../theme/edges.dart';
import 'basic.dart';
import 'button_base.dart';
import 'ink_well.dart';
import 'material.dart';
+import 'theme.dart';
// TODO(eseidel): This needs to change based on device size?
// http://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-keylines-spacing
@@ -32,7 +32,7 @@ class FloatingActionButton extends ButtonBase {
Widget buildContent() {
return new Material(
- color: Red[500],
+ color: Theme.of(this).accent[200],
edge: MaterialEdge.circle,
level: highlight ? 3 : 2,
child: new ClipOval(

Powered by Google App Engine
This is Rietveld 408576698