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 library components_radio; |
| 6 |
5 import '../fn.dart'; | 7 import '../fn.dart'; |
6 import 'button_base.dart'; | 8 import 'button_base.dart'; |
7 import 'ink_well.dart'; | 9 import 'ink_well.dart'; |
8 | 10 |
9 typedef void ValueChanged(value); | 11 typedef void ValueChanged(value); |
10 | 12 |
11 class Radio extends ButtonBase { | 13 class Radio extends ButtonBase { |
12 Object value; | 14 Object value; |
13 Object groupValue; | 15 Object groupValue; |
14 ValueChanged onChanged; | 16 ValueChanged onChanged; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 highlight ? _highlightStyle : _style | 56 highlight ? _highlightStyle : _style |
55 ), | 57 ), |
56 onGestureTap: _handleClick | 58 onGestureTap: _handleClick |
57 ); | 59 ); |
58 } | 60 } |
59 | 61 |
60 void _handleClick(_) { | 62 void _handleClick(_) { |
61 onChanged(value); | 63 onChanged(value); |
62 } | 64 } |
63 } | 65 } |
OLD | NEW |