| OLD | NEW |
| 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 'button_base.dart'; | 7 import 'button_base.dart'; |
| 8 import 'ink_well.dart'; | 8 import 'ink_well.dart'; |
| 9 import 'material.dart'; | 9 import 'material.dart'; |
| 10 import 'wrappers.dart'; | 10 import 'basic.dart'; |
| 11 | 11 |
| 12 enum RaisedButtonTheme { light, dark } | 12 enum RaisedButtonTheme { light, dark } |
| 13 | 13 |
| 14 class RaisedButton extends ButtonBase { | 14 class RaisedButton extends ButtonBase { |
| 15 | 15 |
| 16 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); |
| 17 | 17 |
| 18 UINode child; | 18 UINode child; |
| 19 int level; | 19 int level; |
| 20 Function onPressed; | 20 Function onPressed; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 color: theme == RaisedButtonTheme.light | 45 color: theme == RaisedButtonTheme.light |
| 46 ? (highlight ? Grey[350] : Grey[300]) | 46 ? (highlight ? Grey[350] : Grey[300]) |
| 47 : (highlight ? Blue[700] : Blue[600]) | 47 : (highlight ? Blue[700] : Blue[600]) |
| 48 ) | 48 ) |
| 49 ), | 49 ), |
| 50 onGestureTap: (_) { if (onPressed != null) onPressed(); } | 50 onGestureTap: (_) { if (onPressed != null) onPressed(); } |
| 51 ); | 51 ); |
| 52 } | 52 } |
| 53 | 53 |
| 54 } | 54 } |
| OLD | NEW |