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