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

Unified Diff: sky/sdk/lib/framework/widgets/raised_button.dart

Issue 1177383006: Rename all the things (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix imports 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
« no previous file with comments | « sky/sdk/lib/framework/widgets/radio.dart ('k') | sky/sdk/lib/framework/widgets/scaffold.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/widgets/raised_button.dart
diff --git a/sky/sdk/lib/framework/widgets/raised_button.dart b/sky/sdk/lib/framework/widgets/raised_button.dart
deleted file mode 100644
index cf636bcc5ecee98e8fa315aea96231a1b971095f..0000000000000000000000000000000000000000
--- a/sky/sdk/lib/framework/widgets/raised_button.dart
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import '../theme2/edges.dart';
-import '../theme2/colors.dart';
-import 'button_base.dart';
-import 'ink_well.dart';
-import 'material.dart';
-import 'basic.dart';
-
-enum RaisedButtonTheme { light, dark }
-
-class RaisedButton extends ButtonBase {
-
- RaisedButton({ Object key, this.child, this.onPressed, this.theme: RaisedButtonTheme.light }) : super(key: key);
-
- UINode child;
- int level;
- Function onPressed;
- RaisedButtonTheme theme;
-
- void syncFields(RaisedButton source) {
- child = source.child;
- level = source.level;
- onPressed = source.onPressed;
- super.syncFields(source);
- }
-
- UINode buildContent() {
- return new EventListenerNode(
- new Container(
- height: 36.0,
- constraints: new BoxConstraints(minWidth: 88.0),
- margin: new EdgeDims.all(4.0),
- child: new Material(
- edge: MaterialEdge.card,
- child: new InkWell(
- child: new Container(
- padding: new EdgeDims.symmetric(horizontal: 8.0),
- child: new Center(child: child)
- )
- ),
- level: highlight ? 2 : 1,
- color: theme == RaisedButtonTheme.light
- ? (highlight ? Grey[350] : Grey[300])
- : (highlight ? Blue[700] : Blue[600])
- )
- ),
- onGestureTap: (_) { if (onPressed != null) onPressed(); }
- );
- }
-
-}
« no previous file with comments | « sky/sdk/lib/framework/widgets/radio.dart ('k') | sky/sdk/lib/framework/widgets/scaffold.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698