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

Side by Side Diff: sky/sdk/lib/framework/widgets/raised_button.dart

Issue 1186653003: Make it easier to debug examples/widgets/container.dart, since it is currently showing a crazy clip… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « sky/examples/widgets/spinning_mixed.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import '../theme2/edges.dart'; 5 import '../theme2/edges.dart';
6 import '../theme2/colors.dart'; 6 import '../theme2/colors.dart';
7 import '../rendering/flex.dart';
8 import 'button_base.dart'; 7 import 'button_base.dart';
9 import 'ink_well.dart'; 8 import 'ink_well.dart';
10 import 'material.dart'; 9 import 'material.dart';
11 import 'wrappers.dart'; 10 import 'wrappers.dart';
12 11
13 enum RaisedButtonTheme { light, dark } 12 enum RaisedButtonTheme { light, dark }
14 13
15 class RaisedButton extends ButtonBase { 14 class RaisedButton extends ButtonBase {
16 15
17 RaisedButton({ Object key, this.child, this.onPressed, this.theme: RaisedButto nTheme.light }) : super(key: key); 16 RaisedButton({ Object key, this.child, this.onPressed, this.theme: RaisedButto nTheme.light }) : super(key: key);
(...skipping 28 matching lines...) Expand all
46 color: theme == RaisedButtonTheme.light 45 color: theme == RaisedButtonTheme.light
47 ? (highlight ? Grey[350] : Grey[300]) 46 ? (highlight ? Grey[350] : Grey[300])
48 : (highlight ? Blue[700] : Blue[600]) 47 : (highlight ? Blue[700] : Blue[600])
49 ) 48 )
50 ), 49 ),
51 onGestureTap: (_) { if (onPressed != null) onPressed(); } 50 onGestureTap: (_) { if (onPressed != null) onPressed(); }
52 ); 51 );
53 } 52 }
54 53
55 } 54 }
OLDNEW
« no previous file with comments | « sky/examples/widgets/spinning_mixed.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698