| 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 'dart:sky' as sky; | 5 import 'dart:sky' as sky; |
| 6 | 6 |
| 7 import '../rendering/object.dart'; | 7 import 'package:sky/rendering/object.dart'; |
| 8 import 'basic.dart'; | 8 import 'package:sky/widgets/basic.dart'; |
| 9 import 'button_base.dart'; | 9 import 'package:sky/widgets/button_base.dart'; |
| 10 import 'theme.dart'; | 10 import 'package:sky/widgets/theme.dart'; |
| 11 | 11 |
| 12 const sky.Color _kLightOffColor = const sky.Color(0x8A000000); | 12 const sky.Color _kLightOffColor = const sky.Color(0x8A000000); |
| 13 const sky.Color _kDarkOffColor = const sky.Color(0xB2FFFFFF); | 13 const sky.Color _kDarkOffColor = const sky.Color(0xB2FFFFFF); |
| 14 | 14 |
| 15 typedef void ValueChanged(value); | 15 typedef void ValueChanged(value); |
| 16 | 16 |
| 17 class Radio extends ButtonBase { | 17 class Radio extends ButtonBase { |
| 18 | 18 |
| 19 Radio({ | 19 Radio({ |
| 20 String key, | 20 String key, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ), | 70 ), |
| 71 onGestureTap: _handleClick | 71 onGestureTap: _handleClick |
| 72 ); | 72 ); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void _handleClick(_) { | 75 void _handleClick(_) { |
| 76 onChanged(value); | 76 onChanged(value); |
| 77 } | 77 } |
| 78 | 78 |
| 79 } | 79 } |
| OLD | NEW |