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

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

Issue 1201273002: Add a confirmation dialog to stock app Settings page and style it by default (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove unused import 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/flat_button.dart
diff --git a/sky/sdk/lib/widgets/flat_button.dart b/sky/sdk/lib/widgets/flat_button.dart
index c4b65cceed3f7e497121c309dd00cff6f6254490..bb12c5249c8d794a6e7f4cd0187e0a581cedaeb9 100644
--- a/sky/sdk/lib/widgets/flat_button.dart
+++ b/sky/sdk/lib/widgets/flat_button.dart
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+import 'dart:sky' show Color;
abarth-chromium 2015/06/23 20:52:51 Color should already be available from basic.dart.
jackson 2015/06/23 21:02:35 Done.
+
import '../theme/colors.dart';
import 'basic.dart';
import 'material_button.dart';
@@ -20,7 +22,7 @@ class FlatButton extends MaterialButton {
Color get color {
if (!enabled || !highlight)
- return null;
+ return const Color(0x00000000);
switch (Theme.of(this).brightness) {
case ThemeBrightness.light:
return Grey[400];

Powered by Google App Engine
This is Rietveld 408576698