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

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

Issue 1192773004: Teach Sky buttons and dialogs how to use the new Theme system (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase 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/widgets/material.dart ('k') | sky/sdk/lib/widgets/raised_button.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/material_button.dart
diff --git a/sky/sdk/lib/widgets/material_button.dart b/sky/sdk/lib/widgets/material_button.dart
index 965d34d5520e824113d880d37543eb5aac5fba61..f1513e5fbf5543623abe435180848ba3d66a92f0 100644
--- a/sky/sdk/lib/widgets/material_button.dart
+++ b/sky/sdk/lib/widgets/material_button.dart
@@ -7,8 +7,6 @@ import 'button_base.dart';
import 'ink_well.dart';
import 'material.dart';
-enum MaterialButtonTheme { light, dark }
-
// Rather than using this class directly, please use FlatButton or RaisedButton.
abstract class MaterialButton extends ButtonBase {
@@ -16,20 +14,17 @@ abstract class MaterialButton extends ButtonBase {
String key,
this.child,
this.enabled: true,
- this.onPressed,
- this.theme: MaterialButtonTheme.light
+ this.onPressed
}) : super(key: key);
Widget child;
bool enabled;
Function onPressed;
- MaterialButtonTheme theme;
void syncFields(MaterialButton source) {
child = source.child;
enabled = source.enabled;
onPressed = source.onPressed;
- theme = source.theme;
super.syncFields(source);
}
« no previous file with comments | « sky/sdk/lib/widgets/material.dart ('k') | sky/sdk/lib/widgets/raised_button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698