| 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 'basic.dart'; | 5 import 'package:sky/widgets/basic.dart'; |
| 6 import 'button_base.dart'; | 6 import 'package:sky/widgets/button_base.dart'; |
| 7 import 'ink_well.dart'; | 7 import 'package:sky/widgets/ink_well.dart'; |
| 8 import 'material.dart'; | 8 import 'package:sky/widgets/material.dart'; |
| 9 | 9 |
| 10 // Rather than using this class directly, please use FlatButton or RaisedButton. | 10 // Rather than using this class directly, please use FlatButton or RaisedButton. |
| 11 abstract class MaterialButton extends ButtonBase { | 11 abstract class MaterialButton extends ButtonBase { |
| 12 | 12 |
| 13 MaterialButton({ | 13 MaterialButton({ |
| 14 String key, | 14 String key, |
| 15 this.child, | 15 this.child, |
| 16 this.enabled: true, | 16 this.enabled: true, |
| 17 this.onPressed | 17 this.onPressed |
| 18 }) : super(key: key); | 18 }) : super(key: key); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 46 child: enabled ? new InkWell(child: contents) : contents, | 46 child: enabled ? new InkWell(child: contents) : contents, |
| 47 level: level, | 47 level: level, |
| 48 color: color | 48 color: color |
| 49 ) | 49 ) |
| 50 ), | 50 ), |
| 51 onGestureTap: (_) { if (onPressed != null && enabled) onPressed(); } | 51 onGestureTap: (_) { if (onPressed != null && enabled) onPressed(); } |
| 52 ); | 52 ); |
| 53 } | 53 } |
| 54 | 54 |
| 55 } | 55 } |
| OLD | NEW |